类 FluidHandlerItemStackSimple.SwapEmpty

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

public static class FluidHandlerItemStackSimple.SwapEmpty extends FluidHandlerItemStackSimple
Swaps the container item for a different one when it's emptied.
  • 字段详细资料

    • emptyContainer

      protected final ItemStack emptyContainer
  • 构造器详细资料

    • SwapEmpty

      public SwapEmpty(ItemStack container, ItemStack emptyContainer, 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