Enum ConfigurationManager.Setting
java.lang.Object
java.lang.Enum<ConfigurationManager.Setting>
dev.esophose.playerparticles.manager.ConfigurationManager.Setting
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ConfigurationManager.Setting>
,java.lang.constant.Constable
- Enclosing class:
- ConfigurationManager
public static enum ConfigurationManager.Setting extends java.lang.Enum<ConfigurationManager.Setting>
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description boolean
getBoolean()
Gets the setting as a booleandouble
getDouble()
float
getFloat()
int
getInt()
long
getLong()
java.lang.String
getString()
java.util.List<java.lang.String>
getStringList()
boolean
isDefault()
void
reset()
Resets the cached valueboolean
setIfNotExists(CommentedFileConfiguration fileConfiguration)
static ConfigurationManager.Setting
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ConfigurationManager.Setting[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CHECK_UPDATES
-
SEND_METRICS
-
LOCALE
-
MESSAGES_ENABLED
-
USE_MESSAGE_PREFIX
-
GUI_ENABLED
-
GUI_REQUIRE_PERMISSION
-
GUI_REQUIRE_EFFECTS_AND_STYLES
-
GUI_PRESETS_ONLY
-
GUI_PRESETS_HIDE_PARTICLES_DESCRIPTIONS
-
GUI_CLOSE_AFTER_GROUP_SELECTED
-
GUI_BUTTON_SOUND
-
TOGGLE_ON_MOVE
-
TOGGLE_ON_MOVE_DELAY
-
TOGGLE_ON_COMBAT
-
TOGGLE_ON_COMBAT_DELAY
-
DISABLED_WORLDS
-
CHECK_PERMISSIONS_ON_LOGIN
-
MAX_PARTICLES
-
MAX_GROUPS
-
MAX_FIXED_EFFECTS
-
MAX_FIXED_EFFECT_CREATION_DISTANCE
-
TICKS_PER_PARTICLE
-
DISPLAY_WHEN_INVISIBLE
-
PARTICLE_RENDER_RANGE_PLAYER
-
PARTICLE_RENDER_RANGE_FIXED_EFFECT
-
RAINBOW_CYCLE_SPEED
-
DUST_SIZE
-
GUI_GROUP_CREATION_MESSAGE_DISPLAY_AREA
-
GUI_GROUP_CREATION_BUNGEE_SUPPORT
-
WORLDGUARD_SETTINGS
-
WORLDGUARD_USE_ALLOWED_REGIONS
-
WORLDGUARD_ALLOWED_REGIONS
-
WORLDGUARD_DISALLOWED_REGIONS
-
WORLDGUARD_CHECK_INTERVAL
-
WORLDGUARD_ENABLE_BYPASS_PERMISSION
-
MYSQL_SETTINGS
-
MYSQL_ENABLED
-
MYSQL_HOSTNAME
-
MYSQL_PORT
-
MYSQL_DATABASE_NAME
-
MYSQL_USER_NAME
-
MYSQL_USER_PASSWORD
-
MYSQL_TABLE_PREFIX
-
MYSQL_USE_SSL
-
MYSQL_CONNECTION_POOL_SIZE
-
GUI_ICON
-
GUI_ICON_MISC
-
GUI_ICON_MISC_PARTICLES
-
GUI_ICON_MISC_GROUPS
-
GUI_ICON_MISC_PRESET_GROUPS
-
GUI_ICON_MISC_BACK
-
GUI_ICON_MISC_NEXT_PAGE
-
GUI_ICON_MISC_PREVIOUS_PAGE
-
GUI_ICON_MISC_CREATE
-
GUI_ICON_MISC_EDIT_EFFECT
-
GUI_ICON_MISC_EDIT_STYLE
-
GUI_ICON_MISC_EDIT_DATA
-
GUI_ICON_MISC_RESET
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getBoolean
public boolean getBoolean()Gets the setting as a boolean- Returns:
- The setting as a boolean
-
getInt
public int getInt()- Returns:
- the setting as an int
-
getLong
public long getLong()- Returns:
- the setting as a long
-
getDouble
public double getDouble()- Returns:
- the setting as a double
-
getFloat
public float getFloat()- Returns:
- the setting as a float
-
getString
public java.lang.String getString()- Returns:
- the setting as a String
-
getStringList
public java.util.List<java.lang.String> getStringList()- Returns:
- the setting as a string list
-
setIfNotExists
-
reset
public void reset()Resets the cached value -
isDefault
public boolean isDefault()- Returns:
- true if a setting is still its default value, otherwise false
-