Enum Class TransportSideMode

java.lang.Object
java.lang.Enum<TransportSideMode>
fr.robie.machineengine.api.network.TransportSideMode
All Implemented Interfaces:
Serializable, Comparable<TransportSideMode>, Constable

public enum TransportSideMode extends Enum<TransportSideMode>
How one side of a transport connects to the block there (Mekanism's connection types), set per transport and side (e.g. with a configurator).
  • Enum Constant Details

    • DEFAULT

      public static final TransportSideMode DEFAULT
      Machines: the network takes from their outputs and fills their inputs. Containers: only filled.
    • PULL

      public static final TransportSideMode PULL
      The network pulls from the block (a container or a machine's outputs) and never fills it.
    • PUSH

      public static final TransportSideMode PUSH
      The network only fills the block.
    • NONE

      public static final TransportSideMode NONE
      Not connected.
  • Method Details

    • values

      public static TransportSideMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TransportSideMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • next

      public TransportSideMode next()
      The next mode, for cycling with a tool.