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.MJ
public PipeFlowPower.EnumFlow displayFlow
public long nextPowerQuery
public long internalNextPower
public final AverageInt powerAverage
public boolean canConnect(@Nonnull IMjConnector other)
IMjConnector
canConnect
in interface IMjConnector
public long getPowerRequested()
getPowerRequested
in interface IMjReceiver
public long receivePower(long microJoules, boolean simulate)
IMjReceiver
MjBattery
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 IMjReceiver
microJoules
- 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()
IMjReceiver
IMjReceiver.receivePower(long, boolean)
*might* accept any power right now, ignoring the amount of
power contained right now (if any).canReceive
in interface IMjReceiver
IMjReceiver
can receive power right now.