Package net.ixdarklord.folios.internal
Class GuideHooks
java.lang.Object
net.ixdarklord.folios.internal.GuideHooks
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Function<net.minecraft.resources.ResourceLocation, net.minecraft.network.chat.Component> static Function<net.minecraft.resources.ResourceLocation, net.minecraft.network.chat.Component> static BiConsumer<net.minecraft.resources.ResourceLocation, net.minecraft.world.InteractionHand> -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.chat.ComponentbookAuthor(net.minecraft.resources.ResourceLocation book) Who a book is from, for its item's tooltip.static net.minecraft.network.chat.ComponentbookName(net.minecraft.resources.ResourceLocation book) static net.minecraft.network.chat.ComponentdefaultAuthor(net.minecraft.resources.ResourceLocation book) The display name of the mod whose namespace the book is in; the namespace in title case if no mod has it.static net.minecraft.network.chat.ComponentdefaultName(net.minecraft.resources.ResourceLocation book) guide.<namespace>.<path>.name, with the path in title case as the fallback.static voidopenFromItem(net.minecraft.resources.ResourceLocation book, net.minecraft.world.InteractionHand hand)
-
Field Details
-
opener
public static BiConsumer<net.minecraft.resources.ResourceLocation,net.minecraft.world.InteractionHand> opener -
names
public static Function<net.minecraft.resources.ResourceLocation,net.minecraft.network.chat.Component> names -
authors
public static Function<net.minecraft.resources.ResourceLocation,net.minecraft.network.chat.Component> authors
-
-
Method Details
-
openFromItem
public static void openFromItem(net.minecraft.resources.ResourceLocation book, net.minecraft.world.InteractionHand hand) -
bookName
public static net.minecraft.network.chat.Component bookName(net.minecraft.resources.ResourceLocation book) -
bookAuthor
public static net.minecraft.network.chat.Component bookAuthor(net.minecraft.resources.ResourceLocation book) Who a book is from, for its item's tooltip. -
defaultAuthor
public static net.minecraft.network.chat.Component defaultAuthor(net.minecraft.resources.ResourceLocation book) The display name of the mod whose namespace the book is in; the namespace in title case if no mod has it. -
defaultName
public static net.minecraft.network.chat.Component defaultName(net.minecraft.resources.ResourceLocation book) guide.<namespace>.<path>.name, with the path in title case as the fallback.
-