Class MechanicalMachineNetworkElement

java.lang.Object
org.cyclops.integrateddynamics.core.network.NetworkElementBase
org.cyclops.integrateddynamics.network.MechanicalMachineNetworkElement
All Implemented Interfaces:
Comparable<INetworkElement>, INetworkElement

public class MechanicalMachineNetworkElement extends NetworkElementBase
Network element for mechanical machines.
  • Constructor Details

    • MechanicalMachineNetworkElement

      public MechanicalMachineNetworkElement()
  • Method Details

    • setPriorityAndChannel

      public void setPriorityAndChannel(INetwork network, int priority, int channel)
      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 priority
      channel - 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

      public boolean canRevalidate(INetwork network)
      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

      public void revalidate(INetwork network)
      Description copied from interface: INetworkElement
      Revalidate this network element after it has been invalidated.
      Specified by:
      revalidate in interface INetworkElement
      Overrides:
      revalidate in class NetworkElementBase
      Parameters:
      network - The network.
    • compareTo

      public int compareTo(INetworkElement o)