Class BlockWrapper.LiquidContainerBlockWrapper
java.lang.Object
net.neoforged.neoforge.fluids.capability.templates.VoidFluidHandler
net.neoforged.neoforge.fluids.capability.wrappers.BlockWrapper.LiquidContainerBlockWrapper
- All Implemented Interfaces:
IFluidHandler
- Enclosing class:
BlockWrapper
@Deprecated(since="1.21.9",
forRemoval=true)
public static class BlockWrapper.LiquidContainerBlockWrapper
extends VoidFluidHandler
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.neoforged.neoforge.fluids.capability.IFluidHandler
IFluidHandler.FluidAction -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockPosDeprecated, for removal: This API element is subject to removal in a future version.protected final LiquidBlockContainerDeprecated, for removal: This API element is subject to removal in a future version.protected final LevelDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class net.neoforged.neoforge.fluids.capability.templates.VoidFluidHandler
INSTANCE -
Constructor Summary
ConstructorsConstructorDescriptionLiquidContainerBlockWrapper(LiquidBlockContainer liquidContainer, Level world, BlockPos blockPos) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionintfill(FluidStack resource, IFluidHandler.FluidAction action) Deprecated, for removal: This API element is subject to removal in a future version.Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.Methods inherited from class net.neoforged.neoforge.fluids.capability.templates.VoidFluidHandler
drain, drain, getFluidInTank, getTankCapacity, getTanks, isFluidValid
-
Field Details
-
liquidContainer
Deprecated, for removal: This API element is subject to removal in a future version. -
world
Deprecated, for removal: This API element is subject to removal in a future version. -
blockPos
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
LiquidContainerBlockWrapper
public LiquidContainerBlockWrapper(LiquidBlockContainer liquidContainer, Level world, BlockPos blockPos) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
fill
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IFluidHandlerFills fluid into internal tanks, distribution is left entirely to the IFluidHandler.- Specified by:
fillin interfaceIFluidHandler- Overrides:
fillin 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.
-