Class WorldPainter
java.lang.Object
net.ixdarklord.folios.internal.client.paint.AbstractPainter
net.ixdarklord.folios.internal.client.paint.WorldPainter
- All Implemented Interfaces:
FoliosPainter
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.ixdarklord.folios.internal.client.paint.AbstractPainter
AbstractPainter.Hit, AbstractPainter.NavigatorNested classes/interfaces inherited from interface net.ixdarklord.folios.api.client.page.FoliosPainter
FoliosPainter.Drag, FoliosPainter.Scroll -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final net.minecraft.resources.ResourceLocationFields inherited from class net.ixdarklord.folios.internal.client.paint.AbstractPainter
font, navigator, palette, session -
Constructor Summary
ConstructorsConstructorDescriptionWorldPainter(com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light, FoliosPalette palette, FoliosSession session, AbstractPainter.Navigator navigator, float time, float pointerX, float pointerY, List<AbstractPainter.Hit> hits) WorldPainter(com.mojang.blaze3d.vertex.PoseStack pose, SubmitNodeCollector collector, int light, FoliosPalette palette, FoliosSession session, AbstractPainter.Navigator navigator, float time, float pointerX, float pointerY, List<AbstractPainter.Hit> hits, @Nullable WorldPainter.Surface surface) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcutout(net.minecraft.resources.ResourceLocation texture, int x, int y, int width, int height, float u0, float v0, float u1, float v1, int argb) protected voiddrawItem(net.minecraft.world.item.ItemStack stack, int x, int y, int argb) voidend()voidfill(int x0, int y0, int x1, int y1, int argb) booleanflat()Whether the page is on a screen (true), or on a book in the world (false).lightAs(org.joml.Vector3f normal) intintThe size of the page being drawn: the default page's unless the book's pages are larger (a screen book at a small GUI scale).voidpaper(float x0, float y0, float x1, float y1, int color) voidpaper(float x0, float y0, float x1, float y1, int color, net.minecraft.resources.ResourceLocation texture) voidpaper(float x0, float y0, float x1, float y1, int color, net.minecraft.resources.ResourceLocation texture, float fold, int shade, boolean spineRight) protected voidpopped()voidprinting(boolean printing) protected voidpushed()protected voidscaled(float factor) voidscene(net.ixdarklord.coolcatcanvas.api.client.viewport.SceneViewport viewport, int x, int y, int width, int height) A scene's picture; the painter keeps it in use while it is drawn.voidscene(net.ixdarklord.coolcatcanvas.api.client.viewport.SceneViewport viewport, int x, int y, int width, int height, float u0, float u1) AsFoliosPainter.scene(SceneViewport, int, int, int, int), showing only the part of it fromu0tou1across (0 to 1).voidscene(net.ixdarklord.coolcatcanvas.api.client.viewport.SceneViewport viewport, int x, int y, int width, int height, float u0, float v0, float u1, float v1, int argb) AsFoliosPainter.scene(SceneViewport, int, int, int, int), showing only the part of it from (u0,v0) to (u1,v1) (0 to 1, from its top left), tinted byargb: its alpha fades the picture.voidtext(net.minecraft.util.FormattedCharSequence text, int x, int y, int argb) voidtexture(net.minecraft.resources.ResourceLocation texture, int x, int y, int width, int height, float u0, float v0, float u1, float v1, int argb) A part of a texture, from its (u0, v0) to its (u1, v1), each 0 to 1, tinted byargb.protected voidtranslated(float x, float y) Methods inherited from class net.ixdarklord.folios.internal.client.paint.AbstractPainter
action, drag, font, hold, hovered, item, item, link, pageScale, pageX, pageY, palette, pop, popup, push, quietItem, scale, scroll, silhouette, time, tooltip, tooltip, tooltip, tooltipLines, translateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.ixdarklord.folios.api.client.page.FoliosPainter
centeredText, clip, contentBottom, contentRight, text
-
Field Details
-
WHITE
public static final net.minecraft.resources.ResourceLocation WHITE -
HEIGHT
public static final float HEIGHT- See Also:
-
-
Constructor Details
-
Method Details
-
lightAs
-
printing
public void printing(boolean printing) -
pageWidth
public int pageWidth()Description copied from interface:FoliosPainterThe size of the page being drawn: the default page's unless the book's pages are larger (a screen book at a small GUI scale).- Specified by:
pageWidthin interfaceFoliosPainter- Overrides:
pageWidthin classAbstractPainter
-
pageHeight
public int pageHeight()- Specified by:
pageHeightin interfaceFoliosPainter- Overrides:
pageHeightin classAbstractPainter
-
end
public void end() -
flat
public boolean flat()Description copied from interface:FoliosPainterWhether the page is on a screen (true), or on a book in the world (false). -
above
- Overrides:
abovein classAbstractPainter
-
paper
public void paper(float x0, float y0, float x1, float y1, int color) -
fill
public void fill(int x0, int y0, int x1, int y1, int argb) -
text
public void text(net.minecraft.util.FormattedCharSequence text, int x, int y, int argb) -
texture
public void texture(net.minecraft.resources.ResourceLocation texture, int x, int y, int width, int height, float u0, float v0, float u1, float v1, int argb) Description copied from interface:FoliosPainterA part of a texture, from its (u0, v0) to its (u1, v1), each 0 to 1, tinted byargb. -
cutout
public void cutout(net.minecraft.resources.ResourceLocation texture, int x, int y, int width, int height, float u0, float v0, float u1, float v1, int argb) -
paper
public void paper(float x0, float y0, float x1, float y1, int color, net.minecraft.resources.ResourceLocation texture) -
paper
public void paper(float x0, float y0, float x1, float y1, int color, net.minecraft.resources.ResourceLocation texture, float fold, int shade, boolean spineRight) -
drawItem
protected void drawItem(net.minecraft.world.item.ItemStack stack, int x, int y, int argb) - Specified by:
drawItemin classAbstractPainter
-
scene
public void scene(net.ixdarklord.coolcatcanvas.api.client.viewport.SceneViewport viewport, int x, int y, int width, int height) Description copied from interface:FoliosPainterA scene's picture; the painter keeps it in use while it is drawn. -
scene
public void scene(net.ixdarklord.coolcatcanvas.api.client.viewport.SceneViewport viewport, int x, int y, int width, int height, float u0, float u1) Description copied from interface:FoliosPainterAsFoliosPainter.scene(SceneViewport, int, int, int, int), showing only the part of it fromu0tou1across (0 to 1). -
scene
public void scene(net.ixdarklord.coolcatcanvas.api.client.viewport.SceneViewport viewport, int x, int y, int width, int height, float u0, float v0, float u1, float v1, int argb) Description copied from interface:FoliosPainterAsFoliosPainter.scene(SceneViewport, int, int, int, int), showing only the part of it from (u0,v0) to (u1,v1) (0 to 1, from its top left), tinted byargb: its alpha fades the picture. -
pushed
protected void pushed()- Specified by:
pushedin classAbstractPainter
-
popped
protected void popped()- Specified by:
poppedin classAbstractPainter
-
translated
protected void translated(float x, float y) - Specified by:
translatedin classAbstractPainter
-
scaled
protected void scaled(float factor) - Specified by:
scaledin classAbstractPainter
-