Class ItemInvModificationTracker
java.lang.Object
alexiil.mc.lib.attributes.item.impl.ItemInvModificationTracker
public final class ItemInvModificationTracker
extends java.lang.Object
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 Type Method Description static java.lang.StringstackToFullString(net.minecraft.item.ItemStack stack)static voidtrackNeverChanging(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
public static java.lang.String stackToFullString(net.minecraft.item.ItemStack stack)
-