Class ItemInvModificationTracker

java.lang.Object
alexiil.mc.lib.attributes.item.impl.ItemInvModificationTracker

public final class ItemInvModificationTracker extends Object
A tracker object that tries to ensure that the "no modification" rule that methods like FixedItemInv.getInvStack(int) use is followed.
  • 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 String stackToFullString(net.minecraft.item.ItemStack stack)