Class ItemInvModificationTracker
java.lang.Object
alexiil.mc.lib.attributes.item.impl.ItemInvModificationTracker
A tracker object that tries to ensure that the "no modification" rule that methods like
FixedItemInv.getInvStack(int)
use is followed.-
Method Summary
Modifier and TypeMethodDescriptionstatic String
stackToFullString(net.minecraft.item.ItemStack stack)
static void
trackNeverChanging(net.minecraft.item.ItemStack stack)
Tracks the given ItemStack to ensure that it hasn't changed by the time it is garbage collected.
-
Method Details
-
trackNeverChanging
public static void trackNeverChanging(net.minecraft.item.ItemStack stack)Tracks the given ItemStack to ensure that it hasn't changed by the time it is garbage collected. -
stackToFullString
-