Interface ItemInvAmountChangeListener

All Known Implementing Classes:
ItemInvAmountChangeListener.MarkDirtyWrapper
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ItemInvAmountChangeListener
  • Method Details

    • onChange

      void onChange(GroupedItemInvView inv, net.minecraft.item.ItemStack stack, int previous, int current)
      Parameters:
      inv - The inventory that changed
      stack - The ItemStack whose amount changed.
      previous - The previous amount of the given stack.
      current - The new amount of the given stack.