net.minecraft.nbt

public class NbtSizeTracker

net.minecraft.nbt.NbtAccounter
net.minecraft.class_2505
net.minecraft.nbt.NbtSizeTracker

Field summary

Modifier and TypeField
public static final int
DEFAULT_NBT_QUOTA
field_64681
PACKET_MAX_SIZE
public static final int
UNCOMPRESSED_NBT_QUOTA
field_64682
LEVEL_MAX_SIZE
private static final int
MAX_STACK_DEPTH
field_46208
DEFAULT_MAX_DEPTH
private final long
quota
field_11557
maxBytes
private long
usage
field_11555
allocatedBytes
private final int
maxDepth
field_46209
maxDepth
private int
depth
field_46210
depth

Constructor summary

ModifierConstructor
public (long maxBytes, int maxDepth)

Method summary

Modifier and TypeMethod
public static NbtSizeTracker
create(long quota)
method_53899(long arg0)
of(long maxBytes)
public static NbtSizeTracker
defaultQuota()
method_76768()
forPacket()
public static NbtSizeTracker
uncompressedQuota()
method_76769()
forLevel()
public static NbtSizeTracker
unlimitedHeap()
method_53898()
ofUnlimitedBytes()
public void
accountBytes(long bytesPerEntry, long count)
method_53908(long arg0, long arg1)
add(long multiplier, long bytes)
public void
accountBytes(long size)
method_48004(long arg0)
add(long bytes)
public void
pushDepth()
method_53900()
pushStack()
public void
popDepth()
method_53901()
popStack()
public long
getUsage()
method_47987()
getAllocatedBytes()
public int
getDepth()
method_53902()
getDepth()