Uses of Class
net.minecraft.nbt.NbtSizeTracker
Package
Description
The Named Binary Tag (NBT) data format.
-
Uses of NbtSizeTracker in net.minecraft.nbt
Modifier and TypeMethodDescriptionstatic NbtSizeTracker
NbtSizeTracker.of
(long maxBytes) static NbtSizeTracker
NbtSizeTracker.ofUnlimitedBytes()
Modifier and TypeMethodDescriptiondefault void
NbtType.accept
(DataInput input, NbtScanner visitor, NbtSizeTracker tracker) NbtType.doAccept
(DataInput input, NbtScanner visitor, NbtSizeTracker tracker) (package private) static NbtElement
NbtCompound.read
(NbtType<?> reader, String key, DataInput input, NbtSizeTracker tracker) static NbtElement
NbtIo.read
(DataInput input, NbtSizeTracker tracker) Reads an NBT element frominput
.NbtType.read
(DataInput input, NbtSizeTracker tracker) static NbtCompound
NbtIo.readCompound
(DataInput input, NbtSizeTracker tracker) Reads an NBT compound frominput
.static NbtCompound
NbtIo.readCompressed
(InputStream stream, NbtSizeTracker tagSizeTracker) Reads an NBT compound from Gzip-compressedstream
.static NbtCompound
NbtIo.readCompressed
(Path path, NbtSizeTracker tagSizeTracker) Reads an NBT compound from Gzip-compressed file atpath
.private static NbtElement
NbtIo.readElement
(DataInput input, NbtSizeTracker tracker) private static NbtElement
NbtIo.readElement
(DataInput input, NbtSizeTracker tracker, byte typeId) static void
NbtIo.scan
(DataInput input, NbtScanner scanner, NbtSizeTracker tracker) Scans the NBT input usingscanner
.static void
NbtIo.scanCompressed
(InputStream stream, NbtScanner scanner, NbtSizeTracker tracker) Scans the compressed NBT stream usingscanner
.static void
NbtIo.scanCompressed
(Path path, NbtScanner scanner, NbtSizeTracker tracker) Scans the compressed NBT file usingscanner
.default void
NbtType.OfFixedSize.skip
(DataInput input, int count, NbtSizeTracker tracker) default void
NbtType.OfFixedSize.skip
(DataInput input, NbtSizeTracker tracker) default void
NbtType.OfVariableSize.skip
(DataInput input, int count, NbtSizeTracker tracker) void
NbtType.skip
(DataInput input, int count, NbtSizeTracker tracker) void
NbtType.skip
(DataInput input, NbtSizeTracker tracker) -
Uses of NbtSizeTracker in net.minecraft.network
Modifier and TypeMethodDescription<T> T
PacketByteBuf.decode
(com.mojang.serialization.DynamicOps<NbtElement> ops, com.mojang.serialization.Codec<T> codec, NbtSizeTracker sizeTracker) Deprecated.static @Nullable NbtElement
PacketByteBuf.readNbt
(ByteBuf buf, NbtSizeTracker sizeTracker) PacketByteBuf.readNbt
(NbtSizeTracker sizeTracker) Reads an NBT element from this buf. -
Uses of NbtSizeTracker in net.minecraft.network.codec
Modifier and TypeMethodDescriptionstatic <T> PacketCodec
<ByteBuf, T> PacketCodecs.codec
(com.mojang.serialization.Codec<T> codec, Supplier<NbtSizeTracker> sizeTracker) static PacketCodec
<ByteBuf, NbtElement> PacketCodecs.nbt
(Supplier<NbtSizeTracker> sizeTracker) Returns a codec for an NBT element.static PacketCodec
<ByteBuf, NbtCompound> PacketCodecs.nbtCompound
(Supplier<NbtSizeTracker> sizeTracker) static <T> PacketCodec
<RegistryByteBuf, T> PacketCodecs.registryCodec
(com.mojang.serialization.Codec<T> codec, Supplier<NbtSizeTracker> sizeTracker)