Class ScreenPainter

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

public final class ScreenPainter extends AbstractPainter
  • Constructor Details

  • Method Details

    • end

      public void end()
      Ends the page: undoes the painter's place on the screen.
    • flat

      public boolean flat()
      Description copied from interface: GuidePainter
      Whether the page is on a screen (true), or on a book in the world (false).
    • 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: GuidePainter
      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)
      Description copied from class: AbstractPainter
      Draws over everything drawn so far, items included (which otherwise lie over flat things drawn after them): for a reveal's effect about an item or over a whole page.
      Overrides:
      above in class AbstractPainter
    • drawItem

      protected void drawItem(net.minecraft.world.item.ItemStack stack, int x, int y, int argb)
      Description copied from class: AbstractPainter
      Draws an item, tinted by argb (white and opaque: as it is).
      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: GuidePainter
      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: GuidePainter
      As GuidePainter.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: GuidePainter
      As GuidePainter.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