Package net.minecraft.nbt
Class NbtTagSizeTracker
java.lang.Object
net.minecraft.nbt.NbtTagSizeTracker
Tracks the size of NBT elements. Throws
RuntimeException
if the
tracked element becomes larger than maxBytes
during addition.- Mappings:
Namespace Name official ps
intermediary net/minecraft/class_2505
named net/minecraft/nbt/NbtTagSizeTracker
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lps;a:Lps;
intermediary field_11556
Lnet/minecraft/class_2505;field_11556:Lnet/minecraft/class_2505;
named EMPTY
Lnet/minecraft/nbt/NbtTagSizeTracker;EMPTY:Lnet/minecraft/nbt/NbtTagSizeTracker;
-
maxBytes
private final long maxBytes- Mappings:
Namespace Name Mixin selector official b
Lps;b:J
intermediary field_11557
Lnet/minecraft/class_2505;field_11557:J
named maxBytes
Lnet/minecraft/nbt/NbtTagSizeTracker;maxBytes:J
-
allocatedBytes
private long allocatedBytes- Mappings:
Namespace Name Mixin selector official c
Lps;c:J
intermediary field_11555
Lnet/minecraft/class_2505;field_11555:J
named allocatedBytes
Lnet/minecraft/nbt/NbtTagSizeTracker;allocatedBytes:J
-
-
Constructor Details
-
NbtTagSizeTracker
public NbtTagSizeTracker(long maxBytes) - Mappings:
Namespace Name Mixin selector official <init>
Lps;<init>(J)V
intermediary <init>
Lnet/minecraft/class_2505;<init>(J)V
named <init>
Lnet/minecraft/nbt/NbtTagSizeTracker;<init>(J)V
-
-
Method Details
-
add
public void add(long bits) - Mappings:
Namespace Name Mixin selector official a
Lps;a(J)V
intermediary method_10623
Lnet/minecraft/class_2505;method_10623(J)V
named add
Lnet/minecraft/nbt/NbtTagSizeTracker;add(J)V
-