Interface IEnergyConsumingNetworkElement
- All Superinterfaces:
Comparable<INetworkElement>
,INetworkElement
- All Known Implementing Classes:
ConsumingNetworkElementBase
,DelayNetworkElement
,MaterializerNetworkElement
,PartNetworkElement
,ProxyNetworkElement
,TileNetworkElement
,VariablestoreNetworkElement
An energy consuming network element.
-
Method Summary
Modifier and TypeMethodDescriptionint
void
postUpdate
(INetwork network, boolean updated) Called after the element was updated or not.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
-
Method Details
-
getConsumptionRate
int getConsumptionRate()- Returns:
- The energy consumption rate of this part for the given state.
-
postUpdate
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.- Parameters:
network
- The network.updated
- If theINetworkElement.update(INetwork)
was called.
-