Class NoStatus


public class NoStatus extends StatusPersist
A default status that does nothing.
  • Field Details

    • noStatus

      public static final transient NoStatus noStatus
      A constant instance of no status.
  • Constructor Details

    • NoStatus

      public NoStatus()
      Initializes the default status.
  • Method Details

    • restoreFromNBT

      public StatusPersist restoreFromNBT(net.minecraft.nbt.CompoundTag nbt)
      Description copied from class: StatusPersist
      Loads the status from NBT.
      Specified by:
      restoreFromNBT in class StatusPersist
      Parameters:
      nbt - The NBT tag to read from.
      Returns:
      A new instance of the status.
    • writeToNBT

      public void writeToNBT(net.minecraft.nbt.CompoundTag nbt)
      Description copied from class: StatusPersist
      Writes the status to NBT.
      Overrides:
      writeToNBT in class StatusPersist
      Parameters:
      nbt - The NBT tag to write to.