Class FluidHandlerItemStack.SwapEmpty
java.lang.Object
net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack
net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack.SwapEmpty
- All Implemented Interfaces:
ICapabilityProvider,IFluidHandler,IFluidHandlerItem
- Enclosing class:
- FluidHandlerItemStack
Swaps the container item for a different one when it's emptied.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack
FluidHandlerItemStack.Consumable, FluidHandlerItemStack.SwapEmptyNested classes/interfaces inherited from interface net.minecraftforge.fluids.capability.IFluidHandler
IFluidHandler.FluidAction -
Field Summary
FieldsFields inherited from class net.minecraftforge.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.minecraftforge.fluids.capability.templates.FluidHandlerItemStack
canDrainFluidType, canFillFluidType, drain, drain, fill, getCapability, getContainer, getFluid, getFluidInTank, getTankCapacity, getTanks, isFluidValid, setFluidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
-
Field Details
-
emptyContainer
-
-
Constructor Details
-
SwapEmpty
-
-
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
-