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.
-
Method Summary
Modifier and TypeMethodDescriptioninsert(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 theItemStackthat 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
FluidVolumethat couldn't be inserted.
-