Class GuideStyles
java.lang.Object
net.ixdarklord.folios.api.client.GuideStyles
The ways a book can be shown, named by its
book.json's "style". Two are built in, and any page shows
in either:
SCREEN("screen", the default): a screen with the book's categories down the side, search, bookmarks, and an entry's pages two at a time.HANDHELD("handheld"): the book itself, held open in the player's hands in the world, its leaves turned by hand; the pointer is free to press what is on its pages.
GuideStyles.register(MyMod.id("scroll"), (book, at, hand) -> ...).-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable GuideStyles.Styleget(net.minecraft.resources.Identifier id) static net.minecraft.resources.IdentifierA style as written in a book: a bare name is CoolCatLib's.static voidregister(net.minecraft.resources.Identifier id, GuideStyles.Style style)
-
Field Details
-
SCREEN
public static final net.minecraft.resources.Identifier SCREEN -
HANDHELD
public static final net.minecraft.resources.Identifier HANDHELD
-
-
Method Details
-
register
-
get
-
id
A style as written in a book: a bare name is CoolCatLib's.
-