Class HandheldBook
java.lang.Object
net.ixdarklord.folios.internal.client.FoliosReader
net.ixdarklord.folios.internal.client.handheld.HandheldBook
- All Implemented Interfaces:
AbstractPainter.Navigator
-
Nested Class Summary
Nested classes/interfaces inherited from class FoliosReader
FoliosReader.Flip, FoliosReader.Spot -
Field Summary
Fields inherited from class FoliosReader
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(FoliosBook book, FoliosSession session, @Nullable FoliosBook.Location at, @Nullable net.minecraft.world.InteractionHand hand) static voidopenScreen(FoliosBook book, FoliosSession session, @Nullable FoliosBook.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 FoliosReader
back, bookmarks, canTurn, category, category, chapter, chrome, drawRevealed, entry, flipProgress, follow, go, hasHistory, here, home, index, keepCurrent, mention, moveAlong, open, page, pinned, progress, reveal, revealing, revealOf, save, search, seconds, tabColor, tabColor, tabDetail, tabKey, turn, turnTo, unpin, useSession
-
Method Details
-
openScreen
public static void openScreen(FoliosBook book, FoliosSession session, @Nullable FoliosBook.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
-
open
public static void open(FoliosBook book, FoliosSession session, @Nullable FoliosBook.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:FoliosReaderWhether the open spread's reveal waits to start: its pages aren't shown yet.- Overrides:
revealHeldin classFoliosReader
-
canMove
protected boolean canMove()Description copied from class:FoliosReaderWhether the reader can move about now (a handheld book can't while it is being raised or shut).- Overrides:
canMovein classFoliosReader
-
drop
public static void drop()Forgets the book at once, as when the player leaves the world.
-