Interface IFluidHandlerItem
-
- All Superinterfaces:
IFluidHandler
- All Known Implementing Classes:
FluidBucketWrapper
,FluidHandlerItemStack
,FluidHandlerItemStack.Consumable
,FluidHandlerItemStack.SwapEmpty
,FluidHandlerItemStackSimple
,FluidHandlerItemStackSimple.Consumable
,FluidHandlerItemStackSimple.SwapEmpty
public interface IFluidHandlerItem extends IFluidHandler
ItemStacks handled by anIFluidHandler
may change, so this class allows users of the fluid handler to get the container after it has been used.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraftforge.fluids.capability.IFluidHandler
IFluidHandler.FluidAction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemStack
getContainer()
Get the container currently acted on by this fluid handler.-
Methods inherited from interface net.minecraftforge.fluids.capability.IFluidHandler
drain, drain, fill, getFluidInTank, getTankCapacity, getTanks, isFluidValid
-
-
-
-
Method Detail
-
getContainer
@Nonnull ItemStack getContainer()
Get the container currently acted on by this fluid handler. The ItemStack may be different from its initial state, in the case of fluid containers that have different items for their filled and empty states. May be an empty item if the container was drained and is consumable.
-
-