Interface WItemSlot.ChangeListener

Enclosing class:
WItemSlot
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 static interface WItemSlot.ChangeListener
A listener for changes in an item slot.
Since:
3.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onStackChanged(WItemSlot slot, net.minecraft.inventory.Inventory inventory, int index, net.minecraft.item.ItemStack stack)
    Handles a changed item stack in an item slot.
  • Method Details

    • onStackChanged

      void onStackChanged(WItemSlot slot, net.minecraft.inventory.Inventory inventory, int index, net.minecraft.item.ItemStack stack)
      Handles a changed item stack in an item slot.
      Parameters:
      slot - the item slot widget
      inventory - the item inventory of the slot
      index - the index of the slot in the inventory
      stack - the changed item stack