接口 IFluidHandlerItem

所有超级接口:
IFluidHandler
所有已知实现类:
FluidBucketWrapper

public interface IFluidHandlerItem extends IFluidHandler
ItemStacks handled by an IFluidHandler may change, so this class allows users of the fluid handler to get the container after it has been used.
  • 方法详细资料

    • getContainer

      @NotNull @NotNull 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.