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 SummaryModifier and TypeMethodDescriptioninsert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn)
- 
Method Details- 
insertFluidVolume insert(net.minecraft.item.ItemStack stack, FluidVolume fluid, Simulation simulation, FluidContainerRegistry.FluidFillHandler.StackReturnFunc stackReturn)- Parameters:
- stack- A copy of the- ItemStackthat was stored in the- StackReference.
- 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.
 
 
-