Package net.jcm.vsch.api.pipe.capability
Interface NodeFluidPort
- All Superinterfaces:
NodePort
-
Method Summary
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 isFluids.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 pushingsimulate- 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 pullingsimulate- If this is a simulate action- Returns:
- The actual fluid pulled
-