Enum Class ConfigToggle
- All Implemented Interfaces:
Serializable
,Comparable<ConfigToggle>
,Constable
Configuration toggles
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
gets whether this specific toggle is enabled or notvoid
setEnabled
(boolean setting) Sets this toggle to be enabled or disabledstatic ConfigToggle
Returns the enum constant of this class with the specified name.static ConfigToggle[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OUTPUT_ENABLED
-
DISPLAY_PURPUR_LOBOTOMIZED
-
DISPLAY_BABY_VILLAGER_AGE
-
DISPLAY_ZOMBIE_VILLAGER_CONVERSION_TIME
-
DISPLAY_HEALTH
-
DISPLAY_PROFESSION
-
DISPLAY_JOB_SITE_LOCATION
-
DISPLAY_LAST_WORK_TIME
-
DISPLAY_BED_LOCATION
-
DISPLAY_LAST_SLEEP_TIME
-
DISPLAY_VILLAGER_INVENTORY
-
DISPLAY_RESTOCKS_TODAY
-
DISPLAY_PLAYER_REPUTATION
-
HIGHLIGHT_VILLAGER_WORKSTATION_ON_OUTPUT
-
PLAY_SOUND_ON_INFO_DISPLAY
-
-
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
-
isEnabled
public boolean isEnabled()gets whether this specific toggle is enabled or not- Returns:
- boolean
-
setEnabled
public void setEnabled(boolean setting) Sets this toggle to be enabled or disabled- Parameters:
setting
- boolean
-