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.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)