Interface ItemInvSlotChangeListener

All Known Subinterfaces:
ItemInvSlotChangeListener.ItemInvSlotListener
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 ItemInvSlotChangeListener
Listener FunctionalInterface for FixedItemInvView.

Note that the listener system is not fully fleshed out yet so this will change in the future!

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A specialised type of listener that won't receive the previous ItemStack that occupied the given slot.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onChange(FixedItemInvView inv, int slot, net.minecraft.item.ItemStack previous, net.minecraft.item.ItemStack current)
     
  • Method Details

    • onChange

      void onChange(FixedItemInvView inv, int slot, net.minecraft.item.ItemStack previous, net.minecraft.item.ItemStack current)
      Parameters:
      inv - The inventory that changed
      slot - The slot that changed
      previous - The previous ItemStack.
      current - The new ItemStack