Interface NbtElement

All Known Implementing Classes:
AbstractNbtList, AbstractNbtNumber, NbtByte, NbtByteArray, NbtCompound, NbtDouble, NbtFloat, NbtInt, NbtIntArray, NbtList, NbtLong, NbtLongArray, NbtNull, NbtShort, NbtString

public interface NbtElement
Represents an NBT element.
  • Field Details

  • Method Details

    • write

      void write​(DataOutput output) throws IOException
      Throws:
      IOException
    • toString

      String toString()
      Overrides:
      toString in class Object
    • getType

      byte getType()
      Gets the type of this NBT element.
      Returns:
      the type
    • getNbtType

      NbtType<?> getNbtType()
      Gets the NBT type definition of this NBT element.
      Returns:
      the element type definition
    • copy

      NbtElement copy()
      Copies this NBT element.
      Returns:
      the copied element
    • asString

      default String asString()
    • toText

      default Text toText()
    • toText

      Text toText​(String indent, int depth)