Class FluidHandlerItemStack.Consumable
- java.lang.Object
-
- net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack
-
- net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack.Consumable
-
- All Implemented Interfaces:
ICapabilityProvider
,IFluidHandler
,IFluidHandlerItem
- Enclosing class:
- FluidHandlerItemStack
public static class FluidHandlerItemStack.Consumable extends FluidHandlerItemStack
Destroys the container item when it's emptied.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack
FluidHandlerItemStack.Consumable, FluidHandlerItemStack.SwapEmpty
-
Nested classes/interfaces inherited from interface net.minecraftforge.fluids.capability.IFluidHandler
IFluidHandler.FluidAction
-
-
Field Summary
-
Fields inherited from class net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack
capacity, container, FLUID_NBT_KEY
-
-
Constructor Summary
Constructors Constructor Description Consumable(ItemStack container, int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
setContainerToEmpty()
Override 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, setFluid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
-
-
-
-
Constructor Detail
-
Consumable
public Consumable(ItemStack container, int capacity)
-
-
Method Detail
-
setContainerToEmpty
protected void setContainerToEmpty()
Description copied from class:FluidHandlerItemStack
Override this method for special handling. Can be used to swap out or destroy the container.- Overrides:
setContainerToEmpty
in classFluidHandlerItemStack
-
-