Package alexiil.mc.lib.attributes.fluid
Interface FluidContainerRegistry.FluidFillHandler.StackReturnFunc
- Enclosing class:
- FluidContainerRegistry.FluidFillHandler
public static interface FluidContainerRegistry.FluidFillHandler.StackReturnFunc
Stack return function for
FluidContainerRegistry.FluidFillHandler.insert(ItemStack, FluidVolume, Simulation, StackReturnFunc)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
returnStacks(net.minecraft.item.ItemStack oldStack, net.minecraft.item.ItemStack excess)
Sets theItemStack
s back to where they came.
-
Method Details
-
returnStacks
boolean returnStacks(net.minecraft.item.ItemStack oldStack, net.minecraft.item.ItemStack excess)Sets theItemStack
s back to where they came. (Internally this is just a delegate toAbstractItemBasedAttribute.setStacks(Simulation, ItemStack, ItemStack)
).This function may only be called once, as it is based on
LimitedConsumer.offer(Object, Simulation)
- which doesn't have any defined way to simulate multiple offers.- Returns:
- True if the stacks where both accepted, or false if they were both denied.
-