类 BlockWrapper.LiquidContainerBlockWrapper

java.lang.Object
net.minecraftforge.fluids.capability.templates.VoidFluidHandler
net.minecraftforge.fluids.capability.wrappers.BlockWrapper.LiquidContainerBlockWrapper
所有已实现的接口:
IFluidHandler
封闭类:
BlockWrapper

public static class BlockWrapper.LiquidContainerBlockWrapper extends VoidFluidHandler
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • fill

      public int fill(FluidStack resource, IFluidHandler.FluidAction action)
      从接口复制的说明: IFluidHandler
      Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.
      指定者:
      fill 在接口中 IFluidHandler
      覆盖:
      fill 在类中 VoidFluidHandler
      参数:
      resource - FluidStack representing the Fluid and maximum amount of fluid to be filled.
      action - If SIMULATE, fill will only be simulated.
      返回:
      Amount of resource that was (or would have been, if simulated) filled.