Package net.minecraft.nbt
Class NbtNull
java.lang.Object
net.minecraft.nbt.NbtNull
- All Implemented Interfaces:
NbtElement
public class NbtNull extends Object implements NbtElement
Represents the NBT null value.
Defines the end of an NBT compound object,
represents nonexistent values in an NBT compound object,
and is the type of empty NBT lists.
-
Field Summary
Fields inherited from interface net.minecraft.nbt.NbtElement
AQUA, GOLD, GREEN, RED -
Constructor Summary
Constructors Modifier Constructor Description privateNbtNull() -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.nbt.NbtElement
asString, toText
-
Field Details
-
TYPE
-
INSTANCE
-
-
Constructor Details
-
NbtNull
private NbtNull()
-
-
Method Details
-
write
- Specified by:
writein interfaceNbtElement- Throws:
IOException
-
getType
public byte getType()Gets the type of this NBT element.- Specified by:
getTypein interfaceNbtElement- Returns:
- the type
-
getNbtType
Gets the NBT type definition of this NBT element.- Specified by:
getNbtTypein interfaceNbtElement- Returns:
- the element type definition
-
toString
- Specified by:
toStringin interfaceNbtElement- Overrides:
toStringin classObject
-
copy
Description copied from interface:NbtElementCopies this NBT element.- Specified by:
copyin interfaceNbtElement- Returns:
- the copied element
-
toText
- Specified by:
toTextin interfaceNbtElement
-