Package alexiil.mc.lib.attributes.item
Interface ItemInvAmountChangeListener
- All Known Implementing Classes:
ItemInvAmountChangeListener.MarkDirtyWrapper
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A simple listener for anItemInvAmountChangeListener
that wraps anInvMarkDirtyListener
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onChange(GroupedItemInvView inv, net.minecraft.item.ItemStack stack, int previous, int current)
-
Method Details
-
onChange
void onChange(GroupedItemInvView inv, net.minecraft.item.ItemStack stack, int previous, int current)- Parameters:
inv
- The inventory that changedstack
- TheItemStack
whose amount changed.previous
- The previous amount of the given stack.current
- The new amount of the given stack.
-