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 named net/minecraft/nbt/NbtType
intermediary net/minecraft/class_4614
official va
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
NbtType.OfFixedSize<T extends NbtElement>
Represents an NBT type whose elements have a fixed size, such as primitives.static interface
NbtType.OfVariableSize<T extends NbtElement>
Represents an NBT type whose elements can have a variable size, such as lists. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(DataInput input, NbtScanner visitor, NbtSizeTracker tracker) createInvalid
(int type) Returns an invalid NBT type.doAccept
(DataInput input, NbtScanner visitor, NbtSizeTracker tracker) default boolean
Determines the immutability of this type.read
(DataInput input, NbtSizeTracker tracker) void
skip
(DataInput input, int count, NbtSizeTracker tracker) void
skip
(DataInput input, NbtSizeTracker tracker)
-
Method Details
-
read
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named read
Lnet/minecraft/nbt/NbtType;read(Ljava/io/DataInput;Lnet/minecraft/nbt/NbtSizeTracker;)Lnet/minecraft/nbt/NbtElement;
intermediary method_23262
Lnet/minecraft/class_4614;method_23262(Ljava/io/DataInput;Lnet/minecraft/class_2505;)Lnet/minecraft/class_2520;
official c
Lva;c(Ljava/io/DataInput;Luk;)Luy;
-
doAccept
NbtScanner.Result doAccept(DataInput input, NbtScanner visitor, NbtSizeTracker tracker) throws IOException - Throws:
IOException
- Mappings:
Namespace Name Mixin selector named doAccept
Lnet/minecraft/nbt/NbtType;doAccept(Ljava/io/DataInput;Lnet/minecraft/nbt/scanner/NbtScanner;Lnet/minecraft/nbt/NbtSizeTracker;)Lnet/minecraft/nbt/scanner/NbtScanner$Result;
intermediary method_39852
Lnet/minecraft/class_4614;method_39852(Ljava/io/DataInput;Lnet/minecraft/class_6836;Lnet/minecraft/class_2505;)Lnet/minecraft/class_6836$class_6838;
official a
Lva;a(Ljava/io/DataInput;Luv;Luk;)Luv$b;
-
accept
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named accept
Lnet/minecraft/nbt/NbtType;accept(Ljava/io/DataInput;Lnet/minecraft/nbt/scanner/NbtScanner;Lnet/minecraft/nbt/NbtSizeTracker;)V
intermediary method_39877
Lnet/minecraft/class_4614;method_39877(Ljava/io/DataInput;Lnet/minecraft/class_6836;Lnet/minecraft/class_2505;)V
official b
Lva;b(Ljava/io/DataInput;Luv;Luk;)V
-
skip
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named skip
Lnet/minecraft/nbt/NbtType;skip(Ljava/io/DataInput;ILnet/minecraft/nbt/NbtSizeTracker;)V
intermediary method_39854
Lnet/minecraft/class_4614;method_39854(Ljava/io/DataInput;ILnet/minecraft/class_2505;)V
official a
Lva;a(Ljava/io/DataInput;ILuk;)V
-
skip
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named skip
Lnet/minecraft/nbt/NbtType;skip(Ljava/io/DataInput;Lnet/minecraft/nbt/NbtSizeTracker;)V
intermediary method_39851
Lnet/minecraft/class_4614;method_39851(Ljava/io/DataInput;Lnet/minecraft/class_2505;)V
official b
Lva;b(Ljava/io/DataInput;Luk;)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:
true
if this NBT type is immutable, elsefalse
- Mappings:
Namespace Name Mixin selector named isImmutable
Lnet/minecraft/nbt/NbtType;isImmutable()Z
intermediary method_23263
Lnet/minecraft/class_4614;method_23263()Z
official d
Lva;d()Z
-
getCrashReportName
String getCrashReportName()- Mappings:
Namespace Name Mixin selector named getCrashReportName
Lnet/minecraft/nbt/NbtType;getCrashReportName()Ljava/lang/String;
intermediary method_23259
Lnet/minecraft/class_4614;method_23259()Ljava/lang/String;
official a
Lva;a()Ljava/lang/String;
-
getCommandFeedbackName
String getCommandFeedbackName()- Mappings:
Namespace Name Mixin selector named getCommandFeedbackName
Lnet/minecraft/nbt/NbtType;getCommandFeedbackName()Ljava/lang/String;
intermediary method_23261
Lnet/minecraft/class_4614;method_23261()Ljava/lang/String;
official b
Lva;b()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 named createInvalid
Lnet/minecraft/nbt/NbtType;createInvalid(I)Lnet/minecraft/nbt/NbtType;
intermediary method_23260
Lnet/minecraft/class_4614;method_23260(I)Lnet/minecraft/class_4614;
official a
Lva;a(I)Lva;
-