public static class PipeEventPower.Configure extends PipeEventPower
PipeEventPower.Configure, PipeEventPower.PrimaryDirectionflowcanBeCancelled, holder| Constructor and Description |
|---|
Configure(IPipeHolder holder,
IFlowPower flow) |
| Modifier and Type | Method and Description |
|---|---|
long |
getMaxPower() |
long |
getPowerLoss()
The absolute loss of the power pipe.
|
long |
getPowerResistance()
The percentage resistance of the power pipe (percentage of current power going through the pipe that will be
lost).
|
boolean |
isReceiver() |
void |
setMaxPower(long maxPower) |
void |
setPowerLoss(long powerLoss)
The absolute loss of the power pipe.
|
void |
setPowerResistance(long powerResistance)
The percentage resistance of the power pipe (percentage of current power going through the pipe that will be
lost).
|
void |
setReceiver(boolean receiver)
Sets this pipe to be one that receives power from external sources.
|
cancel, checkStateForErrors, isCanceledpublic Configure(IPipeHolder holder, IFlowPower flow)
public long getMaxPower()
public void setMaxPower(long maxPower)
public long getPowerLoss()
powerResistance if it is set. This is capped at the value given in getMaxPower()public void setPowerLoss(long powerLoss)
powerResistance if it is set. This is capped at the value given in getMaxPower()public long getPowerResistance()
MjAPI.MJpublic void setPowerResistance(long powerResistance)
MjAPI.MJpublic boolean isReceiver()
public void setReceiver(boolean receiver)