Class GuidePageTypes
java.lang.Object
net.ixdarklord.folios.api.client.page.GuidePageTypes
The kinds of page a book's entries can have, by the
"type" their JSON names. A type without a namespace is
Folios's: "text" is folios:text. Built in:
text:title,text.spotlight: an item shown large (item, seeGuideStack),title,text.image:images(texture paths, shown in turn),title,text,border.recipe:recipeorrecipes(up to two ids),title,text; crafting, smelting, stonecutting and smithing recipes are drawn as such.entity:entity(a type id),scale,offset,spin,title,text.multiblock: a structure frompattern(layers top to bottom, each a list of rows) andmapping(character to block state),title,text.links:links(entry ids, or{"entry": ..., "label": ...}),title,text.quest:objectives(seeGuideObjective),title,text,reward: a checklist with progress bars, live as the player plays; its entry shows its progress on its row, and a toast says when it is done.empty: nothing, to start what follows on a new spread.
"anchor" (a name links can reach it by, entry:id#anchor) and the fields of
a GuideLock.-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable com.mojang.serialization.MapCodec<? extends GuidePage> get(net.minecraft.resources.Identifier type) static net.minecraft.resources.IdentifierA page type as written: a bare name is CoolCatLib's.static voidregister(net.minecraft.resources.Identifier type, com.mojang.serialization.MapCodec<? extends GuidePage> codec) Adds a kind of page; register it while the client initialises, before resources load.static Set<net.minecraft.resources.Identifier> types()
-
Method Details
-
register
public static void register(net.minecraft.resources.Identifier type, com.mojang.serialization.MapCodec<? extends GuidePage> codec) Adds a kind of page; register it while the client initialises, before resources load. -
get
public static @Nullable com.mojang.serialization.MapCodec<? extends GuidePage> get(net.minecraft.resources.Identifier type) -
types
-
id
A page type as written: a bare name is CoolCatLib's.
-