Class ConsumingNetworkElementBase
java.lang.Object
org.cyclops.integrateddynamics.core.network.NetworkElementBase
org.cyclops.integrateddynamics.core.network.ConsumingNetworkElementBase
- All Implemented Interfaces:
Comparable<INetworkElement>
,IEnergyConsumingNetworkElement
,INetworkElement
- Direct Known Subclasses:
TileNetworkElement
public abstract class ConsumingNetworkElementBase
extends NetworkElementBase
implements IEnergyConsumingNetworkElement
Base implementation for an energy consuming network element.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
postUpdate
(INetwork network, boolean updated) Called after the element was updated or not.Methods inherited from class org.cyclops.integrateddynamics.core.network.NetworkElementBase
addDrops, afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, canRevalidatePositioned, getUpdateInterval, invalidate, isUpdate, onNeighborBlockChange, onNetworkAddition, onNetworkRemoval, onPostRemoved, onPreRemoved, revalidate, revalidatePositioned, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.cyclops.integrateddynamics.api.network.INetworkElement
addDrops, afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, canRevalidate, getChannel, getPriority, getUpdateInterval, invalidate, isUpdate, onNeighborBlockChange, onNetworkAddition, onNetworkRemoval, onPostRemoved, onPreRemoved, revalidate, setPriorityAndChannel, update
-
Constructor Details
-
ConsumingNetworkElementBase
public ConsumingNetworkElementBase()
-
-
Method Details
-
getConsumptionRate
public int getConsumptionRate()- Specified by:
getConsumptionRate
in interfaceIEnergyConsumingNetworkElement
- Returns:
- The energy consumption rate of this part for the given state.
-
postUpdate
Description copied from interface:IEnergyConsumingNetworkElement
Called after the element was updated or not. If the update was not called, this can be because the network did not contain enough energy to let this element work.- Specified by:
postUpdate
in interfaceIEnergyConsumingNetworkElement
- Parameters:
network
- The network.updated
- If theINetworkElement.update(INetwork)
was called.
-