Class FoliosLibrary
java.lang.Object
net.ixdarklord.folios.internal.client.FoliosLibrary
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable FoliosBookbook(net.minecraft.resources.Identifier id) static Map<net.minecraft.resources.Identifier, FoliosBook> books()static @Nullable com.google.gson.JsonObjectbuild(net.minecraft.resources.Identifier id) A build file as written, by its path under folios/ without ".json" (mymod:my_guide/builds/tower); null for none.static CelebrationSettingscelebrations(net.minecraft.resources.Identifier book) How a book celebrates the player finishing part of it ("celebrations"in book.json); off unless it says.static FoliosIconcoverIcon(net.minecraft.resources.Identifier book) The icon set in the gem of a book's cover: its"cover"›"icon"(an item or a texture);FoliosIcon.NONE, the plain gem, when it gives none or"none".static floatcoverIconSize(net.minecraft.resources.Identifier book) How large a book's cover icon is, of its usual size: its"cover"›"icon_size", 1 by default.static @Nullable net.minecraft.network.chat.Componentcredit(net.minecraft.resources.Identifier book) The book item's credit line: the words its"credits"give before its authors (else itsfolios.<namespace>.<path>.credits.prefixtranslation, else "Written by"), and its authors, joined the language's way (else its...credits.authorstranslation); null when it names no authors.static ElementLayoutlayoutOf(net.minecraft.resources.Identifier book) How a book sets its elements where its pages don't say ("overflow", "alignment"...static voidreload(net.minecraft.server.packs.resources.ResourceManager manager) static @Nullable FoliosSessionsession(net.minecraft.resources.Identifier id) A book's laid-out pages, kept between openings; null when there is no such book.static @Nullable FoliosSessionsession(net.minecraft.resources.Identifier id, int width, int height) A book's laid-out pages for pageswidthbyheight; the default session for the default page size.static StringThe translation key of a book's own text:folios.<namespace>.<path>.<what>, a / in the path as a dot.
-
Field Details
-
MIGRATION
Where the docs say how to move a book to the current format.- See Also:
-
UPGRADER
The docs site's tool that updates a book's files to the current format.- See Also:
-
-
Method Details
-
book
-
books
-
credit
public static @Nullable net.minecraft.network.chat.Component credit(net.minecraft.resources.Identifier book) The book item's credit line: the words its"credits"give before its authors (else itsfolios.<namespace>.<path>.credits.prefixtranslation, else "Written by"), and its authors, joined the language's way (else its...credits.authorstranslation); null when it names no authors. -
coverIcon
The icon set in the gem of a book's cover: its"cover"›"icon"(an item or a texture);FoliosIcon.NONE, the plain gem, when it gives none or"none". -
coverIconSize
public static float coverIconSize(net.minecraft.resources.Identifier book) How large a book's cover icon is, of its usual size: its"cover"›"icon_size", 1 by default. -
textKey
-
celebrations
How a book celebrates the player finishing part of it ("celebrations"in book.json); off unless it says. -
build
public static @Nullable com.google.gson.JsonObject build(net.minecraft.resources.Identifier id) A build file as written, by its path under folios/ without ".json" (mymod:my_guide/builds/tower); null for none. -
session
A book's laid-out pages, kept between openings; null when there is no such book. -
session
public static @Nullable FoliosSession session(net.minecraft.resources.Identifier id, int width, int height) A book's laid-out pages for pageswidthbyheight; the default session for the default page size. -
reload
public static void reload(net.minecraft.server.packs.resources.ResourceManager manager) -
layoutOf
How a book sets its elements where its pages don't say ("overflow", "alignment"... in its book.json).
-