Class HandheldBook
java.lang.Object
net.ixdarklord.folios.internal.client.GuideReader
net.ixdarklord.folios.internal.client.handheld.HandheldBook
- All Implemented Interfaces:
AbstractPainter.Navigator
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ixdarklord.folios.internal.client.GuideReader
GuideReader.Flip, GuideReader.Spot -
Field Summary
Fields inherited from class net.ixdarklord.folios.internal.client.GuideReader
book, flip, FLIP_MILLIS, memory, session, spot, tabs -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanMove()Whether the reader can move about now (a handheld book can't while it is being raised or shut).static @Nullable HandheldBookcurrent()static voiddrop()Forgets the book at once, as when the player leaves the world.static voidopen(GuideBook book, GuideSession session, @Nullable GuideBook.Location at, @Nullable net.minecraft.world.InteractionHand hand) static voidopenScreen(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.protected booleanWhether the open spread's reveal waits to start: its pages aren't shown yet.voidshut()Shuts the book in the reader's hands: it stays held up, to be opened again or put away.static voidtick()Methods inherited from class net.ixdarklord.folios.internal.client.GuideReader
back, bookmarks, canTurn, category, category, chapter, chrome, drawRevealed, entry, flipProgress, follow, go, hasHistory, here, home, index, moveAlong, open, page, progress, reveal, revealing, revealOf, save, search, seconds, tabColor, tabColor, tabDetail, tabKey, turn, turnTo
-
Method Details
-
openScreen
public static void openScreen(GuideBook book, GuideSession session, @Nullable GuideBook.Location at, @Nullable @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
-
open
public static void open(GuideBook book, GuideSession session, @Nullable GuideBook.Location at, @Nullable @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:GuideReaderWhether the open spread's reveal waits to start: its pages aren't shown yet.- Overrides:
revealHeldin classGuideReader
-
canMove
protected boolean canMove()Description copied from class:GuideReaderWhether the reader can move about now (a handheld book can't while it is being raised or shut).- Overrides:
canMovein classGuideReader
-
drop
public static void drop()Forgets the book at once, as when the player leaves the world.
-