Package net.minecraft.nbt
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 Summary
Fields Modifier and Type Field Description static FormattingAQUAstatic FormattingGOLDstatic FormattingGREENstatic FormattingRED -
Method Summary
Modifier and Type Method Description default StringasString()NbtElementcopy()Copies this NBT element.NbtType<?>getNbtType()Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.StringtoString()default TexttoText()TexttoText(String indent, int depth)voidwrite(DataOutput output)
-
Field Details
-
AQUA
-
GREEN
-
GOLD
-
RED
-
-
Method Details
-
write
- Throws:
IOException
-
toString
String toString() -
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
-
toText
-
toText
-