Package net.jcm.vsch.pipe
Class OmniNode
-
Nested Class Summary
Nested classes/interfaces inherited from class net.jcm.vsch.api.pipe.PipeNode
PipeNode.Type -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackbooleancanConnect(net.minecraft.core.Direction dir) intenergyFlowAmount(net.minecraft.core.Direction dir) getAccessFlowDirection(net.minecraft.core.Direction dir) getFlowDirection(net.minecraft.core.Direction dir) getModel()getPipeModel(net.minecraft.core.Direction direction) protected intWater flow rate used to calculate other fluids flow rate based on their viscosity.Methods inherited from class net.jcm.vsch.api.pipe.PipeNode
canAnchor, canConnect, fluidFlowAmount, getColor, getLevel, getPos, getSize, getType, readAdditional, readFrom, setColor, toString, writeAdditional, writeTo
-
Constructor Details
-
OmniNode
-
-
Method Details
-
asItemStack
public net.minecraft.world.item.ItemStack asItemStack()- Specified by:
asItemStackin classPipeNode<OmniNode>
-
getModel
-
getPipeModel
- Specified by:
getPipeModelin classPipeNode<OmniNode>
-
canConnect
public boolean canConnect(net.minecraft.core.Direction dir) - Specified by:
canConnectin classPipeNode<OmniNode>- Parameters:
dir- Direction of another pipe node- Returns:
- if pipes can connect from the direction
-
getAccessFlowDirection
- Specified by:
getAccessFlowDirectionin classPipeNode<OmniNode>- Parameters:
dir- Block direction contents tring to interact with- Returns:
FlowDirection
-
getFlowDirection
- Specified by:
getFlowDirectionin classPipeNode<OmniNode>- Parameters:
dir- Pipe direction contents tring to interact with- Returns:
FlowDirection
-
getWaterFlowRate
protected int getWaterFlowRate()Description copied from class:PipeNodeWater flow rate used to calculate other fluids flow rate based on their viscosity.- Specified by:
getWaterFlowRatein classPipeNode<OmniNode>- Returns:
- How fast can water transfer in mB/tick
- See Also:
-
FluidType.getViscosity()PipeNode.fluidFlowAmount(net.minecraft.core.Direction,net.minecraft.world.level.material.Fluid)
-
energyFlowAmount
public int energyFlowAmount(net.minecraft.core.Direction dir) - Specified by:
energyFlowAmountin classPipeNode<OmniNode>
-