Enum Class NetworkedEnum.NetworkCheck
java.lang.Object
java.lang.Enum<NetworkedEnum.NetworkCheck>
net.neoforged.fml.common.asm.enumextension.NetworkedEnum.NetworkCheck
- All Implemented Interfaces:
Serializable
,Comparable<NetworkedEnum.NetworkCheck>
,Constable
- Enclosing class:
NetworkedEnum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTo be used for enums which are sent in both directions, disallowing connections to either vanilla counterpart when the enum is extendedTo be used for enums which are sent to the client, allowing connections to a vanilla server when the enum is extended on the client but not to a vanilla client when the enum is extended on the serverTo be used for enums which are sent to the server, allowing connections to a vanilla client when the enum is extended on the server but not to a vanilla server when the enum is extended on the client -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkedEnum.NetworkCheck
Returns the enum constant of this class with the specified name.static NetworkedEnum.NetworkCheck[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENTBOUND
To be used for enums which are sent to the client, allowing connections to a vanilla server when the enum is extended on the client but not to a vanilla client when the enum is extended on the server -
SERVERBOUND
To be used for enums which are sent to the server, allowing connections to a vanilla client when the enum is extended on the server but not to a vanilla server when the enum is extended on the client -
BIDIRECTIONAL
To be used for enums which are sent in both directions, disallowing connections to either vanilla counterpart when the enum is extended
-
-
Constructor Details
-
NetworkCheck
private NetworkCheck()
-
-
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
-