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.
A listener for changes in an item slot.
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidonStackChanged(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 widgetinventory- the item inventory of the slotindex- the index of the slot in the inventorystack- the changed item stack
-