Package alexiil.mc.lib.attributes.fluid
Interface FluidInvAmountChangeListener_F
- 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 FluidInvAmountChangeListener_F
-
Method Summary
Modifier and Type Method Description static FluidInvAmountChangeListener
asOld(FluidInvAmountChangeListener_F listener)
Deprecated.void
onChange(GroupedFluidInvView inv, FluidKey fluid, FluidAmount previous, FluidAmount current)
-
Method Details
-
onChange
- Parameters:
inv
- The inventory that changedfluid
- TheFluidKey
whose amount changed.previous
- The previousFluidVolume
.current
- The newFluidVolume
. TheFluidVolume.getFluidKey()
will either be the empty fluid key, or equal to the passedFluidKey
.
-
asOld
Deprecated.
-