Class BookPage

java.lang.Object
com.falkory.arcanumapi.book.BookPage
Direct Known Subclasses:
AbstractCraftingSection, StringSection

public abstract class BookPage extends Object
  • Field Details

    • requirements

      protected List<Requirement> requirements
    • node

      protected net.minecraft.resources.ResourceLocation node
    • key

      protected net.minecraft.resources.ResourceLocation key
  • Constructor Details

    • BookPage

      public BookPage()
  • Method Details

    • getFactory

      public static Function<String,BookPage> getFactory(net.minecraft.resources.ResourceLocation type)
    • makeSection

      public static BookPage makeSection(net.minecraft.resources.ResourceLocation type, String content)
    • deserialize

      public static BookPage deserialize(net.minecraft.nbt.CompoundTag passData)
    • init

      public static void init()
    • addRequirement

      public void addRequirement(Requirement requirement)
    • getRequirements

      public List<Requirement> 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

      public Stream<Pin> getPins(int index, net.minecraft.world.level.Level world, BookNode entry)
      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()