Enum Class NetworkX.ProtocolSide

java.lang.Object
java.lang.Enum<NetworkX.ProtocolSide>
org.moddingx.libx.network.NetworkX.ProtocolSide
All Implemented Interfaces:
Serializable, Comparable<NetworkX.ProtocolSide>, Constable
Enclosing class:
NetworkX

public static enum NetworkX.ProtocolSide extends Enum<NetworkX.ProtocolSide>
Defines when a connection should be accepted.
  • Enum Constant Details

    • REQUIRED

      public static final NetworkX.ProtocolSide REQUIRED
      The connection is only accepted if the protocol is present on the local and remote side
    • OPTIONAL

      public static final NetworkX.ProtocolSide OPTIONAL
      The connection is accepted if the remote side is running on forge. However, it is not required that the protocol is present on the other side.
    • VANILLA

      public static final NetworkX.ProtocolSide VANILLA
      The connection is accepted if the remote side is running on forge or vanilla. However, it is not required that the protocol is present on the other side.
    • REJECTED

      public static final NetworkX.ProtocolSide REJECTED
      The connection is always rejected.
  • Method Details

    • values

      public static NetworkX.ProtocolSide[] 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 NetworkX.ProtocolSide 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