Class BlockWrapper.LiquidContainerBlockWrapper

java.lang.Object
net.minecraftforge.fluids.capability.templates.VoidFluidHandler
net.minecraftforge.fluids.capability.wrappers.BlockWrapper.LiquidContainerBlockWrapper
All Implemented Interfaces:
IFluidHandler
Enclosing class:
BlockWrapper

public static class BlockWrapper.LiquidContainerBlockWrapper extends VoidFluidHandler
  • Field Details

  • Constructor Details

  • Method Details

    • fill

      public int fill(FluidStack resource, IFluidHandler.FluidAction action)
      Description copied from interface: IFluidHandler
      Fills fluid into internal tanks, distribution is left entirely to the IFluidHandler.
      Specified by:
      fill in interface IFluidHandler
      Overrides:
      fill in class VoidFluidHandler
      Parameters:
      resource - FluidStack representing the Fluid and maximum amount of fluid to be filled.
      action - If SIMULATE, fill will only be simulated.
      Returns:
      Amount of resource that was (or would have been, if simulated) filled.