Class BlockWrapper.LiquidContainerBlockWrapper
java.lang.Object
net.minecraftforge.fluids.capability.templates.VoidFluidHandler
net.minecraftforge.fluids.capability.wrappers.BlockWrapper.LiquidContainerBlockWrapper
- All Implemented Interfaces:
- IFluidHandler
- Enclosing class:
- BlockWrapper
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraftforge.fluids.capability.IFluidHandlerIFluidHandler.FluidAction
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final BlockPosprotected final LiquidBlockContainerprotected final LevelFields inherited from class net.minecraftforge.fluids.capability.templates.VoidFluidHandlerINSTANCE
- 
Constructor SummaryConstructorsConstructorDescriptionLiquidContainerBlockWrapper(LiquidBlockContainer liquidContainer, Level world, BlockPos blockPos) 
- 
Method SummaryModifier and TypeMethodDescriptionintfill(FluidStack resource, IFluidHandler.FluidAction action) Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.Methods inherited from class net.minecraftforge.fluids.capability.templates.VoidFluidHandlerdrain, drain, getFluidInTank, getTankCapacity, getTanks, isFluidValid
- 
Field Details- 
liquidContainer
- 
world
- 
blockPos
 
- 
- 
Constructor Details- 
LiquidContainerBlockWrapperpublic LiquidContainerBlockWrapper(LiquidBlockContainer liquidContainer, Level world, BlockPos blockPos) 
 
- 
- 
Method Details- 
fillDescription copied from interface:IFluidHandlerFills fluid into internal tanks, distribution is left entirely to the IFluidHandler.- Specified by:
- fillin interface- IFluidHandler
- Overrides:
- fillin class- VoidFluidHandler
- Parameters:
- resource- FluidStack representing the Fluid and maximum amount of fluid to be filled.
- action- If SIMULATE, fill will only be simulated.
- Returns:
- Amount of resource that was (or would have been, if simulated) filled.
 
 
-