Package net.minecraft.nbt
Interface NbtType<T extends NbtElement>
public interface NbtType<T extends NbtElement>
Represents an NBT type.
-
Method Summary
Modifier and Type Method Description static NbtType<NbtNull>createInvalid(int type)StringgetCommandFeedbackName()StringgetCrashReportName()default booleanisImmutable()Determines the immutability of this type.Tread(DataInput input, int depth, NbtTagSizeTracker tracker)
-
Method Details
-
read
-
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
-
getCrashReportName
String getCrashReportName() -
getCommandFeedbackName
String getCommandFeedbackName() -
createInvalid
-