Package org.moddingx.libx.network
Enum Class NetworkX.ProtocolSide
- All Implemented Interfaces:
Serializable
,Comparable<NetworkX.ProtocolSide>
,Constable
- Enclosing class:
- NetworkX
Defines when a connection should be accepted.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe connection is accepted if the remote side is running on forge.The connection is always rejected.The connection is only accepted if the protocol is present on the local and remote sideThe connection is accepted if the remote side is running on forge or vanilla. -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkX.ProtocolSide
Returns the enum constant of this class with the specified name.static NetworkX.ProtocolSide[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRED
The connection is only accepted if the protocol is present on the local and remote side -
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
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
The connection is always rejected.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-