Interface SlotChangeHandler
- 
- All Superinterfaces:
 InventoryCallbackHandler
- 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 SlotChangeHandler extends InventoryCallbackHandler
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandle(Cause cause, Container container, Slot slot, int slotIndex, ItemStackSnapshot oldStack, ItemStackSnapshot newStack)Handler for inventory change callbacks. 
 - 
 
- 
- 
Method Detail
- 
handle
boolean handle(Cause cause, Container container, Slot slot, int slotIndex, ItemStackSnapshot oldStack, ItemStackSnapshot newStack)
Handler for inventory change callbacks.- Parameters:
 cause- the causecontainer- the containerslot- the changed slotslotIndex- the changed slot indexoldStack- the old stacknewStack- the new stack- Returns:
 - Whether the slot change is valid
 
 
 - 
 
 -