Class CoalGeneratorNetworkElement
java.lang.Object
org.cyclops.integrateddynamics.core.network.NetworkElementBase
org.cyclops.integrateddynamics.network.CoalGeneratorNetworkElement
- All Implemented Interfaces:
Comparable<INetworkElement>
,INetworkElement
,IPositionedNetworkElement
public class CoalGeneratorNetworkElement
extends NetworkElementBase
implements IPositionedNetworkElement
Network element for coal generators.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canRevalidate
(INetwork network) Check if this element can be revalidated if it has been invalidated.int
int
org.cyclops.cyclopscore.datastructure.DimPos
int
void
revalidate
(INetwork network) Revalidate this network element after it has been invalidated.void
setPriorityAndChannel
(INetwork network, int priority, int channel) Set the priority and channel of this element in the network.Methods inherited from class org.cyclops.integrateddynamics.core.network.NetworkElementBase
addDrops, afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, canRevalidatePositioned, getUpdateInterval, invalidate, isUpdate, onNeighborBlockChange, onNetworkAddition, onNetworkRemoval, onPostRemoved, onPreRemoved, revalidatePositioned, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cyclops.integrateddynamics.api.network.INetworkElement
addDrops, afterNetworkAlive, afterNetworkReAlive, beforeNetworkKill, getUpdateInterval, invalidate, isUpdate, onNeighborBlockChange, onNetworkAddition, onNetworkRemoval, onPostRemoved, onPreRemoved, update
-
Constructor Details
-
CoalGeneratorNetworkElement
public CoalGeneratorNetworkElement()
-
-
Method Details
-
setPriorityAndChannel
Description copied from interface:INetworkElement
Set the priority and channel of this element in the network.- Specified by:
setPriorityAndChannel
in interfaceINetworkElement
- Parameters:
network
- The network this element is present in.priority
- The new prioritychannel
- The new channel
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceINetworkElement
- Returns:
- The priority of this element in the network.
-
getChannel
public int getChannel()- Specified by:
getChannel
in interfaceINetworkElement
- Returns:
- The channel of this element in the network.
-
canRevalidate
Description copied from interface:INetworkElement
Check if this element can be revalidated if it has been invalidated.- Specified by:
canRevalidate
in interfaceINetworkElement
- Parameters:
network
- The network.- Returns:
- If it can be revalidated.
-
revalidate
Description copied from interface:INetworkElement
Revalidate this network element after it has been invalidated.- Specified by:
revalidate
in interfaceINetworkElement
- Overrides:
revalidate
in classNetworkElementBase
- Parameters:
network
- The network.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<INetworkElement>
-
getPosition
public org.cyclops.cyclopscore.datastructure.DimPos getPosition()- Specified by:
getPosition
in interfaceIPositionedNetworkElement
-