Package net.minecraft.nbt
Class NbtNull
java.lang.Object
net.minecraft.nbt.NbtNull
- All Implemented Interfaces:
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.
- Mappings:
Namespace Name official oe
intermediary net/minecraft/class_2491
named net/minecraft/nbt/NbtNull
-
Field Summary
Fields inherited from interface net.minecraft.nbt.NbtElement
BYTE_ARRAY_TYPE, BYTE_TYPE, COMPOUND_TYPE, DOUBLE_TYPE, field_33246, field_33247, field_33248, field_33249, FLOAT_TYPE, INT_ARRAY_TYPE, INT_TYPE, LIST_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, MAX_DEPTH, NULL_TYPE, NUMBER_TYPE, SHORT_TYPE, STRING_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(NbtElementVisitor visitor) copy()
Copies this NBT element.doAccept
(NbtScanner visitor) Gets the NBT type definition of this NBT element.byte
getType()
Gets the type of this NBT element.toString()
void
write
(DataOutput output) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.nbt.NbtElement
accept, asString
-
Field Details
-
SIZE
private static final int SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official c
Loe;c:I
intermediary field_33193
Lnet/minecraft/class_2491;field_33193:I
named SIZE
Lnet/minecraft/nbt/NbtNull;SIZE:I
-
TYPE
- Mappings:
Namespace Name Mixin selector official a
Loe;a:Lox;
intermediary field_21032
Lnet/minecraft/class_2491;field_21032:Lnet/minecraft/class_4614;
named TYPE
Lnet/minecraft/nbt/NbtNull;TYPE:Lnet/minecraft/nbt/NbtType;
-
INSTANCE
- Mappings:
Namespace Name Mixin selector official b
Loe;b:Loe;
intermediary field_21033
Lnet/minecraft/class_2491;field_21033:Lnet/minecraft/class_2491;
named INSTANCE
Lnet/minecraft/nbt/NbtNull;INSTANCE:Lnet/minecraft/nbt/NbtNull;
-
-
Constructor Details
-
NbtNull
private NbtNull()
-
-
Method Details
-
write
- Specified by:
write
in interfaceNbtElement
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lov;a(Ljava/io/DataOutput;)V
intermediary method_10713
Lnet/minecraft/class_2520;method_10713(Ljava/io/DataOutput;)V
named write
Lnet/minecraft/nbt/NbtElement;write(Ljava/io/DataOutput;)V
-
getType
public byte getType()Gets the type of this NBT element.- Specified by:
getType
in interfaceNbtElement
- Returns:
- the type
- Mappings:
Namespace Name Mixin selector official a
Lov;a()B
intermediary method_10711
Lnet/minecraft/class_2520;method_10711()B
named getType
Lnet/minecraft/nbt/NbtElement;getType()B
-
getNbtType
Gets the NBT type definition of this NBT element.- Specified by:
getNbtType
in interfaceNbtElement
- Returns:
- the element type definition
- Mappings:
Namespace Name Mixin selector official b
Lov;b()Lox;
intermediary method_23258
Lnet/minecraft/class_2520;method_23258()Lnet/minecraft/class_4614;
named getNbtType
Lnet/minecraft/nbt/NbtElement;getNbtType()Lnet/minecraft/nbt/NbtType;
-
toString
- Specified by:
toString
in interfaceNbtElement
- Overrides:
toString
in classObject
-
copy
Description copied from interface:NbtElement
Copies this NBT element.- Specified by:
copy
in interfaceNbtElement
- Returns:
- the copied element
- Mappings:
Namespace Name Mixin selector official d
Loe;d()Loe;
intermediary method_10586
Lnet/minecraft/class_2491;method_10586()Lnet/minecraft/class_2491;
named copy
Lnet/minecraft/nbt/NbtNull;copy()Lnet/minecraft/nbt/NbtNull;
-
accept
- Specified by:
accept
in interfaceNbtElement
- Mappings:
Namespace Name Mixin selector official a
Lov;a(Loz;)V
intermediary method_32289
Lnet/minecraft/class_2520;method_32289(Lnet/minecraft/class_5627;)V
named accept
Lnet/minecraft/nbt/NbtElement;accept(Lnet/minecraft/nbt/visitor/NbtElementVisitor;)V
-
doAccept
- Specified by:
doAccept
in interfaceNbtElement
- Mappings:
Namespace Name Mixin selector official a
Lov;a(Los;)Los$b;
intermediary method_39850
Lnet/minecraft/class_2520;method_39850(Lnet/minecraft/class_6836;)Lnet/minecraft/class_6836$class_6838;
named doAccept
Lnet/minecraft/nbt/NbtElement;doAccept(Lnet/minecraft/nbt/scanner/NbtScanner;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
-