类 FluidHandlerItemStackSimple.Consumable

java.lang.Object
net.minecraftforge.fluids.capability.templates.FluidHandlerItemStackSimple
net.minecraftforge.fluids.capability.templates.FluidHandlerItemStackSimple.Consumable
所有已实现的接口:
ICapabilityProvider, IFluidHandler, IFluidHandlerItem
封闭类:
FluidHandlerItemStackSimple

public static class FluidHandlerItemStackSimple.Consumable extends FluidHandlerItemStackSimple
Destroys the container item when it's emptied.
  • 构造器详细资料

    • Consumable

      public Consumable(ItemStack container, int capacity)
  • 方法详细资料

    • setContainerToEmpty

      protected void setContainerToEmpty()
      从类复制的说明: 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--"
      覆盖:
      setContainerToEmpty 在类中 FluidHandlerItemStackSimple