Package com.falkory.arcanumapi.book
Class BookPage
java.lang.Object
com.falkory.arcanumapi.book.BookPage
- Direct Known Subclasses:
AbstractCraftingSection,StringSection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.resources.ResourceLocationprotected net.minecraft.resources.ResourceLocationprotected List<Requirement> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddRequirement(Requirement requirement) static BookPagedeserialize(net.minecraft.nbt.CompoundTag passData) abstract net.minecraft.nbt.CompoundTaggetData()getFactory(net.minecraft.resources.ResourceLocation type) net.minecraft.resources.ResourceLocationgetNode()net.minecraft.nbt.CompoundTagReturns a stream containing this entry's pins.abstract net.minecraft.resources.ResourceLocationgetType()static voidinit()net.minecraft.resources.ResourceLocationkey()static BookPagemakeSection(net.minecraft.resources.ResourceLocation type, String content)
-
Field Details
-
requirements
-
node
protected net.minecraft.resources.ResourceLocation node -
key
protected net.minecraft.resources.ResourceLocation key
-
-
Constructor Details
-
BookPage
public BookPage()
-
-
Method Details
-
getFactory
-
makeSection
-
deserialize
-
init
public static void init() -
addRequirement
-
getRequirements
-
getPassData
public net.minecraft.nbt.CompoundTag getPassData() -
getNode
public net.minecraft.resources.ResourceLocation getNode() -
getType
public abstract net.minecraft.resources.ResourceLocation getType() -
getData
public abstract net.minecraft.nbt.CompoundTag getData() -
addOwnRequirements
public void addOwnRequirements() -
getPins
Returns a stream containing this entry's pins.- Parameters:
index- The index in the entry of this section.world- The world the player is in.entry- The entry this is in.- Returns:
- This entry's pins.
-
key
public net.minecraft.resources.ResourceLocation key()
-