Class FluidHandlerItemStack.Consumable
java.lang.Object
net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack
net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack.Consumable
- All Implemented Interfaces:
 IFluidHandler,IFluidHandlerItem
- Enclosing class:
 - FluidHandlerItemStack
 
Destroys the container item when it's emptied.
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack
FluidHandlerItemStack.Consumable, FluidHandlerItemStack.SwapEmptyNested classes/interfaces inherited from interface net.neoforged.neoforge.fluids.capability.IFluidHandler
IFluidHandler.FluidAction - 
Field Summary
Fields inherited from class net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack
capacity, container, FLUID_NBT_KEY - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidOverride this method for special handling.Methods inherited from class net.neoforged.neoforge.fluids.capability.templates.FluidHandlerItemStack
canDrainFluidType, canFillFluidType, drain, drain, fill, getContainer, getFluid, getFluidInTank, getTankCapacity, getTanks, isFluidValid, setFluid 
- 
Constructor Details
- 
Consumable
 
 - 
 - 
Method Details
- 
setContainerToEmpty
protected void setContainerToEmpty()Description copied from class:FluidHandlerItemStackOverride this method for special handling. Can be used to swap out or destroy the container.- Overrides:
 setContainerToEmptyin classFluidHandlerItemStack
 
 -