Package alexiil.mc.lib.attributes.fluid
Interface FluidContainerRegistry.FluidFillFunction
- Enclosing class:
- FluidContainerRegistry
- 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 static interface FluidContainerRegistry.FluidFillFunction
FunctionalInterface
version of FluidContainerRegistry.FluidFillHandler
.-
Method Summary
Modifier and Type Method Description FluidVolume
insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn)
-
Method Details
-
insert
FluidVolume insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn)- Parameters:
stack
- A copy of theItemStack
that was stored in theStackReference
.fluid
- The fluid to insert. (So you should always copy this rather than modify it). Note that this will never be empty, or have an amount less than the minimum.simulation
-stackReturn
- A function to set the new stacks to.- Returns:
- The excess
FluidVolume
that couldn't be inserted.
-