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.
This class uses the NBT type 0.
- Mappings:
Namespace Name official mtintermediary net/minecraft/class_2491named net/minecraft/nbt/NbtNull
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description privateNbtNull() -
Method Summary
Modifier and Type Method Description voidaccept(NbtElementVisitor visitor)NbtNullcopy()Copies this NBT element.NbtType<NbtNull>getNbtType()Gets the NBT type definition of this NBT element.bytegetType()Gets the type of this NBT element.StringtoString()voidwrite(DataOutput output)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
-
Field Details
-
TYPE
- Mappings:
Namespace Name Mixin selector official aLmt;a:Lnl;intermediary field_21032Lnet/minecraft/class_2491;field_21032:Lnet/minecraft/class_4614;named TYPELnet/minecraft/nbt/NbtNull;TYPE:Lnet/minecraft/nbt/NbtType;
-
INSTANCE
- Mappings:
Namespace Name Mixin selector official bLmt;b:Lmt;intermediary field_21033Lnet/minecraft/class_2491;field_21033:Lnet/minecraft/class_2491;named INSTANCELnet/minecraft/nbt/NbtNull;INSTANCE:Lnet/minecraft/nbt/NbtNull;
-
-
Constructor Details
-
NbtNull
private NbtNull()
-
-
Method Details
-
write
- Specified by:
writein interfaceNbtElement- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLnj;a(Ljava/io/DataOutput;)Vintermediary method_10713Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
-
getType
public byte getType()Gets the type of this NBT element.- Specified by:
getTypein interfaceNbtElement- Returns:
- the type
- Mappings:
Namespace Name Mixin selector official aLnj;a()Bintermediary method_10711Lnet/minecraft/class_2520;method_10711()Bnamed getTypeLnet/minecraft/nbt/NbtElement;getType()B
-
getNbtType
Gets the NBT type definition of this NBT element.- Specified by:
getNbtTypein interfaceNbtElement- Returns:
- the element type definition
- Mappings:
Namespace Name Mixin selector official bLnj;b()Lnl;intermediary method_23258Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;named getNbtTypeLnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;
-
toString
- Specified by:
toStringin interfaceNbtElement- Overrides:
toStringin classObject- Mappings:
Namespace Name Mixin selector official toStringLnj;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_2520;toString()Ljava/lang/String;named toStringLnet/minecraft/nbt/NbtElement;toString()Ljava/lang/String;
-
copy
Description copied from interface:NbtElementCopies this NBT element.- Specified by:
copyin interfaceNbtElement- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official dLmt;d()Lmt;intermediary method_10586Lnet/minecraft/class_2491;method_10586()Lnet/minecraft/class_2491;named copyLnet/minecraft/nbt/NbtNull;copy()Lnet/minecraft/nbt/NbtNull;
-
accept
- Specified by:
acceptin interfaceNbtElement- Mappings:
Namespace Name Mixin selector official aLnj;a(Lnn;)Vintermediary method_32289Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)Vnamed acceptLnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-