Class BlockWrapper
java.lang.Object
net.minecraftforge.fluids.capability.templates.VoidFluidHandler
net.minecraftforge.fluids.capability.wrappers.BlockWrapper
- All Implemented Interfaces:
 IFluidHandler
Wrapper around any block, only accounts for fluid placement, otherwise the block acts a void.
 If the block in question inherits from the Forge implementations,
 consider using 
FluidBlockWrapper.- 
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraftforge.fluids.capability.IFluidHandler
IFluidHandler.FluidAction - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockPosprotected final BlockStateprotected final LevelFields inherited from class net.minecraftforge.fluids.capability.templates.VoidFluidHandler
INSTANCE - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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.VoidFluidHandler
drain, drain, getFluidInTank, getTankCapacity, getTanks, isFluidValid 
- 
Field Details
- 
state
 - 
world
 - 
blockPos
 
 - 
 - 
Constructor Details
- 
BlockWrapper
 
 - 
 - 
Method Details
- 
fill
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.
 
 
 -