Uses of Interface
net.minecraft.nbt.NbtType
Package
Description
The Named Binary Tag (NBT) data format.
-
Uses of NbtType in net.minecraft.nbt
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.Modifier and TypeFieldDescriptionNbtByte.TYPE
static final NbtType<NbtByteArray>
NbtByteArray.TYPE
static final NbtType<NbtCompound>
NbtCompound.TYPE
NbtDouble.TYPE
NbtEnd.TYPE
NbtFloat.TYPE
NbtInt.TYPE
static final NbtType<NbtIntArray>
NbtIntArray.TYPE
NbtList.TYPE
NbtLong.TYPE
static final NbtType<NbtLongArray>
NbtLongArray.TYPE
NbtShort.TYPE
NbtString.TYPE
private static final NbtType<?>[]
NbtTypes.VALUES
Modifier and TypeMethodDescriptionstatic NbtType<?>
NbtTypes.byId
(int id) Gets the associated NBT type for a givenid
.NbtType.createInvalid
(int type) Returns an invalid NBT type.NbtByte.getNbtType()
Returns the NBT type definition of this NBT element.NbtByteArray.getNbtType()
Returns the NBT type definition of this NBT element.NbtCompound.getNbtType()
Returns the NBT type definition of this NBT element.NbtDouble.getNbtType()
Returns the NBT type definition of this NBT element.NbtType<?>
NbtElement.getNbtType()
Returns the NBT type definition of this NBT element.NbtEnd.getNbtType()
Returns the NBT type definition of this NBT element.NbtFloat.getNbtType()
Returns the NBT type definition of this NBT element.NbtInt.getNbtType()
Returns the NBT type definition of this NBT element.NbtIntArray.getNbtType()
Returns the NBT type definition of this NBT element.NbtList.getNbtType()
Returns the NBT type definition of this NBT element.NbtLong.getNbtType()
Returns the NBT type definition of this NBT element.NbtLongArray.getNbtType()
Returns the NBT type definition of this NBT element.NbtShort.getNbtType()
Returns the NBT type definition of this NBT element.NbtString.getNbtType()
Returns the NBT type definition of this NBT element.Modifier and TypeMethodDescriptionprivate CrashReport
NbtCompound.createCrashReport
(String key, NbtType<?> reader, ClassCastException exception) (package private) static NbtElement
NbtCompound.read
(NbtType<?> reader, String key, DataInput input, NbtTagSizeTracker nbtTagSizeTracker) -
Uses of NbtType in net.minecraft.nbt.scanner
Modifier and TypeFieldDescriptionprivate final NbtType<?>
NbtScanQuery.type
The field for thetype
record component.Modifier and TypeFieldDescriptionSelectiveNbtCollector.allPossibleTypes
NbtTreeNode.selectedFields
The field for theselectedFields
record component.Modifier and TypeMethodDescriptionNbtType<?>
NbtScanQuery.type()
Returns the value of thetype
record component.Modifier and TypeMethodDescriptionNbtTreeNode.selectedFields()
Returns the value of theselectedFields
record component.Modifier and TypeMethodDescriptionboolean
NbtTreeNode.isTypeEqual
(NbtType<?> type, String key) Returns whether the queried type for the keykey
matchestype
.private void
Starts a visit to an NBT structure.Starts a visit to an NBT structure.Starts a visit to an NBT structure.default NbtScanner.Result
Starts a visit to an NBT structure.NbtCollector.startListItem
(NbtType<?> type, int index) Starts a visit to an NBT structure in an element of a list NBT.NbtScanner.startListItem
(NbtType<?> type, int index) Starts a visit to an NBT structure in an element of a list NBT.default NbtScanner.NestedResult
SimpleNbtScanner.startListItem
(NbtType<?> type, int index) Starts a visit to an NBT structure in an element of a list NBT.ExclusiveNbtCollector.startSubNbt
(NbtType<?> type, String key) Starts a visit to an NBT structure in the sub NBT of a compound NBT.NbtCollector.startSubNbt
(NbtType<?> type, String key) Starts a visit to an NBT structure in the sub NBT of a compound NBT.NbtScanner.startSubNbt
(NbtType<?> type, String key) Starts a visit to an NBT structure in the sub NBT of a compound NBT.SelectiveNbtCollector.startSubNbt
(NbtType<?> type, String key) Starts a visit to an NBT structure in the sub NBT of a compound NBT.default NbtScanner.NestedResult
SimpleNbtScanner.startSubNbt
(NbtType<?> type, String key) Starts a visit to an NBT structure in the sub NBT of a compound NBT.NbtCollector.visitListMeta
(NbtType<?> entryType, int length) NbtScanner.visitListMeta
(NbtType<?> entryType, int length) default NbtScanner.Result
SimpleNbtScanner.visitListMeta
(NbtType<?> entryType, int length) NbtCollector.visitSubNbtType
(NbtType<?> type) NbtScanner.visitSubNbtType
(NbtType<?> type) SelectiveNbtCollector.visitSubNbtType
(NbtType<?> type) default NbtScanner.NestedResult
SimpleNbtScanner.visitSubNbtType
(NbtType<?> type) ModifierConstructorDescriptionNbtScanQuery
(String path1, String path2, NbtType<?> type, String key) NbtScanQuery
(String path, NbtType<?> type, String key) NbtScanQuery
(List<String> list, NbtType<?> nbtType, String string) NbtScanQuery
(NbtType<?> type, String key) ModifierConstructorDescriptionNbtTreeNode
(int int2, Map<String, NbtType<?>> map, Map<String, NbtTreeNode> map2)