Package net.minecraft.nbt
Interface NbtType<T extends NbtElement>
- All Known Subinterfaces:
NbtType.OfFixedSize<T>,NbtType.OfVariableSize<T>
public interface NbtType<T extends NbtElement>
Represents an NBT type.
- Mappings:
Namespace Name official rmintermediary net/minecraft/class_4614named net/minecraft/nbt/NbtType
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceNbtType.OfFixedSize<T extends NbtElement>Represents an NBT type whose elements have a fixed size, such as primitives.static interfaceNbtType.OfVariableSize<T extends NbtElement>Represents an NBT type whose elements can have a variable size, such as lists. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(DataInput input, NbtScanner visitor) createInvalid(int type) Returns an invalid NBT type.doAccept(DataInput input, NbtScanner visitor) default booleanDetermines the immutability of this type.read(DataInput input, int depth, NbtTagSizeTracker tracker) voidvoid
-
Method Details
-
read
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLrm;b(Ljava/io/DataInput;ILra;)Lrk;intermediary method_23262Lnet/minecraft/class_4614;method_23262(Ljava/io/DataInput;ILnet/minecraft/class_2505;)Lnet/minecraft/class_2520;named readLnet/minecraft/nbt/NbtType;read(Ljava/io/DataInput;ILnet/minecraft/nbt/NbtTagSizeTracker;)Lnet/minecraft/nbt/NbtElement;
-
doAccept
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLrm;a(Ljava/io/DataInput;Lrh;)Lrh$b;intermediary method_39852Lnet/minecraft/class_4614;method_39852(Ljava/io/DataInput;Lnet/minecraft/class_6836;)Lnet/minecraft/class_6836$class_6838;named doAcceptLnet/minecraft/nbt/NbtType;doAccept(Ljava/io/DataInput;Lnet/minecraft/nbt/scanner/NbtScanner;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
-
accept
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLrm;b(Ljava/io/DataInput;Lrh;)Vintermediary method_39877Lnet/minecraft/class_4614;method_39877(Ljava/io/DataInput;Lnet/minecraft/class_6836;)Vnamed acceptLnet/minecraft/nbt/NbtType;accept(Ljava/io/DataInput;Lnet/minecraft/nbt/scanner/NbtScanner;)V
-
skip
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLrm;a(Ljava/io/DataInput;I)Vintermediary method_39854Lnet/minecraft/class_4614;method_39854(Ljava/io/DataInput;I)Vnamed skipLnet/minecraft/nbt/NbtType;skip(Ljava/io/DataInput;I)V
-
skip
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLrm;a(Ljava/io/DataInput;)Vintermediary method_39851Lnet/minecraft/class_4614;method_39851(Ljava/io/DataInput;)Vnamed skipLnet/minecraft/nbt/NbtType;skip(Ljava/io/DataInput;)V
-
isImmutable
default boolean isImmutable()Determines the immutability of this type.The mutability of an NBT type means the held value can be modified after the NBT element is instantiated.
- Returns:
trueif this NBT type is immutable, elsefalse- Mappings:
Namespace Name Mixin selector official dLrm;d()Zintermediary method_23263Lnet/minecraft/class_4614;method_23263()Znamed isImmutableLnet/minecraft/nbt/NbtType;isImmutable()Z
-
getCrashReportName
String getCrashReportName()- Mappings:
Namespace Name Mixin selector official aLrm;a()Ljava/lang/String;intermediary method_23259Lnet/minecraft/class_4614;method_23259()Ljava/lang/String;named getCrashReportNameLnet/minecraft/nbt/NbtType;getCrashReportName()Ljava/lang/String;
-
getCommandFeedbackName
String getCommandFeedbackName()- Mappings:
Namespace Name Mixin selector official bLrm;b()Ljava/lang/String;intermediary method_23261Lnet/minecraft/class_4614;method_23261()Ljava/lang/String;named getCommandFeedbackNameLnet/minecraft/nbt/NbtType;getCommandFeedbackName()Ljava/lang/String;
-
createInvalid
Returns an invalid NBT type.Operations with an invalid NBT type always throws
IOException.- Returns:
- an invalid NBT type
- See Also:
- Mappings:
Namespace Name Mixin selector official aLrm;a(I)Lrm;intermediary method_23260Lnet/minecraft/class_4614;method_23260(I)Lnet/minecraft/class_4614;named createInvalidLnet/minecraft/nbt/NbtType;createInvalid(I)Lnet/minecraft/nbt/NbtType;
-