Class ItemFlagsComponent

java.lang.Object
vazkii.botania.common.internal_caps.SerializableComponent
vazkii.botania.common.internal_caps.ItemFlagsComponent

public class ItemFlagsComponent extends SerializableComponent
  • Field Details

    • ID

      public static final net.minecraft.resources.ResourceLocation ID
    • elvenPortalSpawned

      public boolean elvenPortalSpawned
    • apothecarySpawned

      public boolean apothecarySpawned
    • manaInfusionSpawned

      public boolean manaInfusionSpawned
    • runicAltarSpawned

      public boolean runicAltarSpawned
    • timeCounter

      public int timeCounter
      Similar to the age field on the actual entity, but always increases by 1 every tick, no magic values like vanilla -32768, etc. Initialized to zero by default, but may still be initialized to values less than zero in certain scenarios.
  • Constructor Details

    • ItemFlagsComponent

      public ItemFlagsComponent()
  • Method Details

    • readFromNbt

      public void readFromNbt(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registryLookup)
      Specified by:
      readFromNbt in class SerializableComponent
    • writeToNbt

      public void writeToNbt(net.minecraft.nbt.CompoundTag tag, net.minecraft.core.HolderLookup.Provider registryLookup)
      Specified by:
      writeToNbt in class SerializableComponent
    • tick

      public void tick()
    • spawnedByInWorldRecipe

      public boolean spawnedByInWorldRecipe()