Class FluidHandlerItemStackSimple.Consumable

java.lang.Object
net.minecraftforge.fluids.capability.templates.FluidHandlerItemStackSimple
net.minecraftforge.fluids.capability.templates.FluidHandlerItemStackSimple.Consumable
All Implemented Interfaces:
ICapabilityProvider, IFluidHandler, IFluidHandlerItem
Enclosing class:
FluidHandlerItemStackSimple

public static class FluidHandlerItemStackSimple.Consumable extends FluidHandlerItemStackSimple
Destroys the container item when it's emptied.
  • Constructor Details

    • Consumable

      public Consumable(ItemStack container, int capacity)
  • Method Details

    • setContainerToEmpty

      protected void setContainerToEmpty()
      Description copied from class: FluidHandlerItemStackSimple
      Override this method for special handling. Can be used to swap out the container's item for a different one with "container.setItem". Can be used to destroy the container with "container.stackSize--"
      Overrides:
      setContainerToEmpty in class FluidHandlerItemStackSimple