Class FoliosReader
java.lang.Object
net.ixdarklord.folios.internal.client.FoliosReader
- All Implemented Interfaces:
AbstractPainter.Navigator
- Direct Known Subclasses:
HandheldBook
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal FoliosBook@Nullable FoliosReader.Flipstatic final floatfinal FoliosMemoryfinal TabMotion -
Constructor Summary
ConstructorsConstructorDescriptionFoliosReader(FoliosBook book, FoliosSession session, @Nullable FoliosBook.Location at) FoliosReader(FoliosBook book, FoliosSession session, @Nullable FoliosBook.Location at, @Nullable net.minecraft.world.InteractionHand hand) -
Method Summary
Modifier and TypeMethodDescriptionvoidback()voidprotected booleancanMove()booleancanTurn(int direction) @Nullable FoliosCategorycategory()voidvoidchrome(FoliosPainter painter, FoliosReader.Spot spot, boolean right, boolean pressable, @Nullable Runnable shut) voiddrawRevealed(FoliosPainter painter, FoliosPageElement.Laid page, FoliosReader.Spot at, boolean right) @Nullable FoliosEntryentry()floatvoidvoidgo(FoliosReader.Spot next) boolean@Nullable FoliosBook.Locationhere()voidhome()voidindex()voidbooleanmention(boolean right) voidmoveAlong(FoliosReader.Spot next) voidopen(FoliosBook.Location location) @Nullable FoliosPageElement.Laidpage(FoliosReader.Spot at, int offset) @Nullable FoliosPopuppinned()int[]voidreveal()protected booleanrevealing(FoliosPainter painter, FoliosReader.Spot at, boolean right) voidsave()voidfloatseconds()inttabColor(@Nullable FoliosCategory category, FoliosPalette palette, boolean here, boolean hovered) inttabColor(@Nullable FoliosCategory category, FoliosPalette palette, float out) @Nullable net.minecraft.network.chat.ComponenttabDetail(@Nullable FoliosCategory category, String part) static StringtabKey(@Nullable FoliosCategory category, String part) voidturn(int direction) voidturnTo(int page) voidunpin()voiduseSession(FoliosSession next)
-
Field Details
-
FLIP_MILLIS
public static final float FLIP_MILLIS- See Also:
-
book
-
session
-
memory
-
spot
-
tabs
-
flip
-
-
Constructor Details
-
FoliosReader
-
FoliosReader
public FoliosReader(FoliosBook book, FoliosSession session, @Nullable FoliosBook.Location at, @Nullable net.minecraft.world.InteractionHand hand)
-
-
Method Details
-
keepCurrent
public void keepCurrent() -
useSession
-
seconds
public float seconds() -
revealHeld
protected boolean revealHeld() -
reveal
public void reveal() -
revealOf
-
revealing
-
drawRevealed
public void drawRevealed(FoliosPainter painter, FoliosPageElement.Laid page, FoliosReader.Spot at, boolean right) -
canMove
protected boolean canMove() -
chapter
-
page
-
chrome
public void chrome(FoliosPainter painter, FoliosReader.Spot spot, boolean right, boolean pressable, @Nullable @Nullable Runnable shut) -
tabColor
public int tabColor(@Nullable @Nullable FoliosCategory category, FoliosPalette palette, boolean here, boolean hovered) -
tabColor
-
tabDetail
@Nullable public @Nullable net.minecraft.network.chat.Component tabDetail(@Nullable @Nullable FoliosCategory category, String part) -
tabKey
-
progress
-
canTurn
public boolean canTurn(int direction) -
turn
public void turn(int direction) -
turnTo
public void turnTo(int page) -
back
public void back() -
go
-
moveAlong
-
flipProgress
public float flipProgress() -
home
public void home() -
category
-
search
-
bookmarks
public void bookmarks() -
index
public void index() -
hasHistory
public boolean hasHistory() -
pinned
-
unpin
public void unpin() -
mention
public boolean mention(boolean right) -
follow
- Specified by:
followin interfaceAbstractPainter.Navigator
-
open
- Specified by:
openin interfaceAbstractPainter.Navigator
-
here
- Specified by:
herein interfaceAbstractPainter.Navigator
-
entry
-
category
-
save
public void save()
-