Interface NbtType<T extends NbtElement>


public interface NbtType<T extends NbtElement>
Represents an NBT type.
  • Method Details

    • read

      T read​(DataInput input, int depth, NbtTagSizeTracker tracker)
    • isImmutable

      default boolean isImmutable()
      Determines the immutability of this type.

      The mutability of an NBT type means the held value can be modified after the NBT element is instantiated.

      Returns:
      true if this NBT type is immutable, else false
    • getCrashReportName

      String getCrashReportName()
    • getCommandFeedbackName

      String getCommandFeedbackName()
    • createInvalid

      static NbtType<NbtNull> createInvalid​(int type)