Interface NodeFluidPort

All Superinterfaces:
NodePort

public interface NodeFluidPort extends NodePort
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraftforge.fluids.FluidStack
    Check the fluid the port may interact with.
    net.minecraftforge.fluids.FluidStack
    pullFluid(int amount, boolean simulate)
     
    int
    pushFluid(net.minecraftforge.fluids.FluidStack stack, boolean simulate)
     

    Methods inherited from interface net.jcm.vsch.api.pipe.capability.NodePort

    getFlowDirection, getPressure
  • Method Details

    • peekFluid

      net.minecraftforge.fluids.FluidStack peekFluid()
      Check the fluid the port may interact with. If the raw type of the fluid stack is Fluids.EMPTY, any fluids may push to the port and no fluids can be pulled. Otherwise, the port may only accept that type of fluid. The returned FluidStack must not be modified.
      Returns:
      The fluid the port may interact with.
    • pushFluid

      int pushFluid(net.minecraftforge.fluids.FluidStack stack, boolean simulate)
      Parameters:
      stack - The fluid pushing
      simulate - If this is a simulate action
      Returns:
      The actual amount of fluid pushed
    • pullFluid

      net.minecraftforge.fluids.FluidStack pullFluid(int amount, boolean simulate)
      Parameters:
      amount - The maximum amount of the fluid pulling
      simulate - If this is a simulate action
      Returns:
      The actual fluid pulled