Class FoliosHooks
java.lang.Object
net.ixdarklord.folios.internal.FoliosHooks
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Function<net.minecraft.resources.Identifier, @Nullable net.minecraft.network.chat.Component> static Function<net.minecraft.resources.Identifier, net.minecraft.network.chat.Component> static BiConsumer<net.minecraft.resources.Identifier, net.minecraft.world.InteractionHand> -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable net.minecraft.network.chat.ComponentbookCredit(net.minecraft.resources.Identifier book) The line under a book item's name saying who the book is by ("credits"in book.json); null when it doesn't say.static net.minecraft.network.chat.ComponentbookName(net.minecraft.resources.Identifier book) static net.minecraft.network.chat.ComponentdefaultName(net.minecraft.resources.Identifier book) folios.<namespace>.<path>.name, with the path in title case as the fallback.static voidopenFromItem(net.minecraft.resources.Identifier book, net.minecraft.world.InteractionHand hand)
-
Field Details
-
opener
public static BiConsumer<net.minecraft.resources.Identifier, net.minecraft.world.InteractionHand> opener -
names
public static Function<net.minecraft.resources.Identifier, net.minecraft.network.chat.Component> names -
credits
public static Function<net.minecraft.resources.Identifier, @Nullable net.minecraft.network.chat.Component> credits
-
-
Method Details
-
openFromItem
public static void openFromItem(net.minecraft.resources.Identifier book, net.minecraft.world.InteractionHand hand) -
bookName
public static net.minecraft.network.chat.Component bookName(net.minecraft.resources.Identifier book) -
bookCredit
public static @Nullable net.minecraft.network.chat.Component bookCredit(net.minecraft.resources.Identifier book) The line under a book item's name saying who the book is by ("credits"in book.json); null when it doesn't say. -
defaultName
public static net.minecraft.network.chat.Component defaultName(net.minecraft.resources.Identifier book) folios.<namespace>.<path>.name, with the path in title case as the fallback.
-