Class WorldPainter

java.lang.Object
net.ixdarklord.folios.internal.client.paint.AbstractPainter
net.ixdarklord.folios.internal.client.paint.WorldPainter
All Implemented Interfaces:
FoliosPainter

public final class WorldPainter extends AbstractPainter
  • Field Details

    • WHITE

      public static final net.minecraft.resources.ResourceLocation WHITE
    • HEIGHT

      public static final float HEIGHT
      See Also:
  • Constructor Details

  • Method Details

    • lightAs

      public WorldPainter lightAs(org.joml.Vector3f normal)
    • printing

      public void printing(boolean printing)
    • pageWidth

      public int pageWidth()
      Description copied from interface: FoliosPainter
      The 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:
      pageWidth in interface FoliosPainter
      Overrides:
      pageWidth in class AbstractPainter
    • pageHeight

      public int pageHeight()
      Specified by:
      pageHeight in interface FoliosPainter
      Overrides:
      pageHeight in class AbstractPainter
    • end

      public void end()
    • flat

      public boolean flat()
      Description copied from interface: FoliosPainter
      Whether the page is on a screen (true), or on a book in the world (false).
    • above

      public void above(Runnable draw)
      Overrides:
      above in class AbstractPainter
    • baked

      public void baked(String site, Runnable draw)
    • 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: FoliosPainter
      A part of a texture, from its (u0, v0) to its (u1, v1), each 0 to 1, tinted by argb.
    • 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:
      drawItem in class AbstractPainter
    • scene

      public void scene(net.ixdarklord.coolcatcanvas.api.client.viewport.SceneViewport viewport, int x, int y, int width, int height)
      Description copied from interface: FoliosPainter
      A 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: FoliosPainter
      As FoliosPainter.scene(SceneViewport, int, int, int, int), showing only the part of it from u0 to u1 across (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: FoliosPainter
      As FoliosPainter.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 by argb: its alpha fades the picture.
    • pushed

      protected void pushed()
      Specified by:
      pushed in class AbstractPainter
    • popped

      protected void popped()
      Specified by:
      popped in class AbstractPainter
    • translated

      protected void translated(float x, float y)
      Specified by:
      translated in class AbstractPainter
    • scaled

      protected void scaled(float factor)
      Specified by:
      scaled in class AbstractPainter