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 Summary
Nested classes/interfaces inherited from interface net.minecraftforge.fluids.capability.IFluidHandler
IFluidHandler.FluidAction
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BlockPos
protected final LiquidBlockContainer
protected final Level
Fields inherited from class net.minecraftforge.fluids.capability.templates.VoidFluidHandler
INSTANCE
-
Constructor Summary
ConstructorDescriptionLiquidContainerBlockWrapper
(LiquidBlockContainer liquidContainer, Level world, BlockPos blockPos) -
Method Summary
Modifier and TypeMethodDescriptionint
fill
(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.VoidFluidHandler
drain, drain, getFluidInTank, getTankCapacity, getTanks, isFluidValid
-
Field Details
-
liquidContainer
-
world
-
blockPos
-
-
Constructor Details
-
LiquidContainerBlockWrapper
public LiquidContainerBlockWrapper(LiquidBlockContainer liquidContainer, Level world, BlockPos blockPos)
-
-
Method Details
-
fill
Description copied from interface:IFluidHandler
Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.- Specified by:
fill
in interfaceIFluidHandler
- Overrides:
fill
in classVoidFluidHandler
- 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.
-