Class MechanicalMachineNetworkElement
java.lang.Object
org.cyclops.integrateddynamics.core.network.NetworkElementBase
org.cyclops.integrateddynamics.network.MechanicalMachineNetworkElement
- All Implemented Interfaces:
Comparable<INetworkElement>
,INetworkElement
Network element for mechanical machines.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canRevalidate
(INetwork network) Check if this element can be revalidated if it has been invalidated.int
int
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
-
Constructor Details
-
MechanicalMachineNetworkElement
public MechanicalMachineNetworkElement()
-
-
Method Details
-
setPriorityAndChannel
Description copied from interface:INetworkElement
Set the priority and channel of this element in the network.- Parameters:
network
- The network this element is present in.priority
- The new prioritychannel
- The new channel
-
getPriority
public int getPriority()- Returns:
- The priority of this element in the network.
-
getChannel
public int getChannel()- 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.- 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
-