public class PipeFlowPower.Section extends java.lang.Object implements IMjReceiver
| Modifier and Type | Field and Description |
|---|---|
AverageInt |
clientDisplayAverage |
double |
clientDisplayFlow |
PipeFlowPower.EnumFlow |
displayFlow |
int |
displayPower
Range: 0 to
MjAPI.MJ |
long |
internalNextPower |
long |
nextPowerQuery |
AverageInt |
powerAverage |
net.minecraft.util.EnumFacing |
side |
| Constructor and Description |
|---|
Section(net.minecraft.util.EnumFacing side) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConnect(IMjConnector other)
Checks to see if this connector can connect to the other connector.
|
boolean |
canReceive()
Checks to see if
IMjReceiver.receivePower(long, boolean) *might* accept any power right now, ignoring the amount of
power contained right now (if any). |
long |
getPowerRequested() |
long |
receivePower(long microJoules,
boolean simulate)
Receives power.
|
public final net.minecraft.util.EnumFacing side
public final AverageInt clientDisplayAverage
public double clientDisplayFlow
public int displayPower
MjAPI.MJpublic PipeFlowPower.EnumFlow displayFlow
public long nextPowerQuery
public long internalNextPower
public final AverageInt powerAverage
public boolean canConnect(@Nonnull
IMjConnector other)
IMjConnectorcanConnect in interface IMjConnectorpublic long getPowerRequested()
getPowerRequested in interface IMjReceiverpublic long receivePower(long microJoules,
boolean simulate)
IMjReceiverMjBattery for later usage.
MjBattery is full).
IMjReceiver.canReceive() before calling this - implementors should check
all of the conditions in IMjReceiver.canReceive() before accepting power.receivePower in interface IMjReceivermicroJoules - The number of micro joules to add.simulate - If true then just pretend you received power- don't actually change any of your internal state.public boolean canReceive()
IMjReceiverIMjReceiver.receivePower(long, boolean) *might* accept any power right now, ignoring the amount of
power contained right now (if any).canReceive in interface IMjReceiverIMjReceiver can receive power right now.