Enum Class BindingEnum
- All Implemented Interfaces:
Serializable, Comparable<BindingEnum>, Constable
Dynamic Binding Enum for Logic Server
- Author:
- 渔民小镇
- date:
- 2023-06-07
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BindingEnumofValue(int value) static BindingEnumReturns the enum constant of this class with the specified name.static BindingEnum[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COVER
Override the bound logic serversExample:
Before overriding, if the player was already bound to logic server IDs [1-1]; Now the player adds logic server IDs [2-2, 3-1]; The player's bound logic server data at this time will be [2-2, 3-1], a total of 2 pieces of data, the new overrides the old; The currently set values will be used regardless of any previously bound data;
-
APPEND
Append to the bound logic serversExample:
Before appending, if the player was already bound to logic server IDs [1-1]; Now the player adds logic server IDs [2-2, 3-1]; The player's bound logic server data at this time will be [1-1, 2-2, 3-1], a total of 3 pieces of data
-
REMOVE
Remove the bound logic serversExample:
Before removal, if the player was already bound to logic server IDs [1-1, 2-2, 3-1]; Now the player adds [2-2, 3-1] as the logic server IDs to be removed; The player's bound logic server data at this time will be [1-1], a total of 1 piece of data, with 2 pieces of data removed;
-
CLEAR
Clear all bound logic servers
-
-
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
-
ofValue
-