Package net.ixdarklord.folios.api.client
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.ResourceLocation id) static net.minecraft.resources.ResourceLocationA style as written in a book: a bare name is CoolCatLib's.static voidregister(net.minecraft.resources.ResourceLocation id, GuideStyles.Style style)
-
Field Details
-
SCREEN
public static final net.minecraft.resources.ResourceLocation SCREEN -
HANDHELD
public static final net.minecraft.resources.ResourceLocation HANDHELD
-
-
Method Details
-
register
-
get
@Nullable public static @Nullable GuideStyles.Style get(net.minecraft.resources.ResourceLocation id) -
id
A style as written in a book: a bare name is CoolCatLib's.
-