Interface IFluidHandler

All Known Subinterfaces:
IFluidHandlerItem
All Known Implementing Classes:
BlockWrapper, BlockWrapper.LiquidContainerBlockWrapper, BucketPickupHandlerWrapper, EmptyFluidHandler, FluidBucketWrapper, FluidHandlerItemStack, FluidHandlerItemStack.Consumable, FluidHandlerItemStack.SwapEmpty, FluidHandlerItemStackSimple, FluidHandlerItemStackSimple.Consumable, FluidHandlerItemStackSimple.SwapEmpty, FluidResourceHandlerAdapter, FluidResourceHandlerItemAdapter, FluidTank, VoidFluidHandler

@Deprecated(since="1.21.9", forRemoval=true) public interface IFluidHandler
Deprecated, for removal: This API element is subject to removal in a future version.
Use ResourceHandler with a FluidResource instead. Code that is written against IFluidHandler but receives a ResourceHandler<FluidResource> can temporarily use of(net.neoforged.neoforge.transfer.ResourceHandler<net.neoforged.neoforge.transfer.fluid.FluidResource>) to ease migration.
Implement this interface as a capability which should handle fluids, generally storing them in one or more internal IFluidTank objects.

A reference implementation is provided

invalid reference
TileFluidHandler
.