Class HandheldBook

java.lang.Object
net.ixdarklord.folios.internal.client.GuideReader
net.ixdarklord.folios.internal.client.handheld.HandheldBook
All Implemented Interfaces:
AbstractPainter.Navigator

public final class HandheldBook extends GuideReader
  • Method Details

    • openScreen

      public static void openScreen(GuideBook book, GuideSession session, @Nullable GuideBook.Location at, @Nullable net.minecraft.world.InteractionHand hand)
      Opens a screen book used from a hand: raised and opened in the hands first, its screen coming up once it lies open. With no hand (a command, a link), the screen opens at once.
    • current

      public static @Nullable HandheldBook current()
    • open

      public static void open(GuideBook book, GuideSession session, @Nullable GuideBook.Location at, @Nullable net.minecraft.world.InteractionHand hand)
    • tick

      public static void tick()
    • shut

      public void shut()
      Shuts the book in the reader's hands: it stays held up, to be opened again or put away.
    • revealHeld

      protected boolean revealHeld()
      Description copied from class: GuideReader
      Whether the open spread's reveal waits to start: its pages aren't shown yet.
      Overrides:
      revealHeld in class GuideReader
    • canMove

      protected boolean canMove()
      Description copied from class: GuideReader
      Whether the reader can move about now (a handheld book can't while it is being raised or shut).
      Overrides:
      canMove in class GuideReader
    • drop

      public static void drop()
      Forgets the book at once, as when the player leaves the world.