Enum Class EDhApiServerFolderNameMode
java.lang.Object
java.lang.Enum<EDhApiServerFolderNameMode>
com.seibel.distanthorizons.api.enums.config.EDhApiServerFolderNameMode
- All Implemented Interfaces:
Serializable
,Comparable<EDhApiServerFolderNameMode>
,Constable
NAME_ONLY,
IP_ONLY,
NAME_IP,
NAME_IP_PORT,
NAME_IP_PORT_MC_VERSION,
Determines how the multiplayer folders should be named.
IP_ONLY,
NAME_IP,
NAME_IP_PORT,
NAME_IP_PORT_MC_VERSION,
Determines how the multiplayer folders should be named.
- Since:
- API 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOnly use the server IP{SERVER_NAME} IP {IP}
Example: Minecraft Server IP 192.168.1.40{SERVER_NAME} IP {IP}:{PORT}
Example: Minecraft Server IP 192.168.1.40:25565{SERVER_NAME} IP {IP}
Example: Minecraft Server IP 192.168.1.40:25565 GameVersion 1.16.5
Not normally recommended, since the game version can change if the server installs paper or some other jar.Only use the server name -
Method Summary
Modifier and TypeMethodDescriptionstatic EDhApiServerFolderNameMode
Returns the enum constant of this class with the specified name.static EDhApiServerFolderNameMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NAME_ONLY
Only use the server name -
IP_ONLY
Only use the server IP -
NAME_IP
{SERVER_NAME} IP {IP}
Example: Minecraft Server IP 192.168.1.40 -
NAME_IP_PORT
{SERVER_NAME} IP {IP}:{PORT}
Example: Minecraft Server IP 192.168.1.40:25565 -
NAME_IP_PORT_MC_VERSION
{SERVER_NAME} IP {IP}
Example: Minecraft Server IP 192.168.1.40:25565 GameVersion 1.16.5
Not normally recommended, since the game version can change if the server installs paper or some other jar.
This is just here to provide backwards compatibility.
-
-
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
-