Package alexiil.mc.lib.attributes.item
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.
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
Modifier and TypeInterfaceDescriptionstatic interface
A specialised type of listener that won't receive the previousItemStack
that occupied the given slot. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 changedslot
- The slot that changedprevious
- The previousItemStack
.current
- The newItemStack
-