Class ScreenPainter

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

public final class ScreenPainter extends AbstractPainter
  • Constructor Details

  • Method Details

    • 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).
    • baked

      public void baked(String site, Runnable draw)
    • 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.Identifier 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.
    • above

      public void above(Runnable draw)
      Overrides:
      above in class AbstractPainter
    • 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
    • clip

      public void clip(int x, int y, int width, int height, Runnable draw)
      Description copied from interface: FoliosPainter
      Draws with what is drawn kept inside a box, (x, y) width by height in the painter's pixels. A painter that can't clip draws it all.
    • 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