Package cn.nukkit.level
Enum Class GameRule
- All Implemented Interfaces:
Serializable
,Comparable<GameRule>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDeprecated. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
static String[]
getNames()
boolean
parseString
(String gameRuleString) static GameRule
Returns the enum constant of this class with the specified name.static GameRule[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMAND_BLOCKS_ENABLED
-
COMMAND_BLOCK_OUTPUT
-
DO_DAYLIGHT_CYCLE
-
DO_ENTITY_DROPS
-
DO_FIRE_TICK
-
DO_INSOMNIA
-
DO_IMMEDIATE_RESPAWN
-
DO_MOB_LOOT
-
DO_MOB_SPAWNING
-
DO_TILE_DROPS
-
DO_WEATHER_CYCLE
-
DROWNING_DAMAGE
-
FALL_DAMAGE
-
FIRE_DAMAGE
-
FREEZE_DAMAGE
-
FUNCTION_COMMAND_LIMIT
-
KEEP_INVENTORY
-
MAX_COMMAND_CHAIN_LENGTH
-
MOB_GRIEFING
-
NATURAL_REGENERATION
-
PVP
-
RANDOM_TICK_SPEED
-
SEND_COMMAND_FEEDBACK
-
SHOW_COORDINATES
-
SHOW_DEATH_MESSAGES
-
SHOW_DEATH_MESSAGE
@Deprecated @PowerNukkitOnly("Renamed to SHOW_DEATH_MESSAGE by NukkitX") @DeprecationDetails(since="1.5.1.0-PN", reason="Added by upstream with a different name", replaceWith="SHOW_DEATH_MESSAGES") public static final GameRule SHOW_DEATH_MESSAGEDeprecated. -
SPAWN_RADIUS
-
TNT_EXPLODES
-
EXPERIMENTAL_GAMEPLAY
-
SHOW_TAGS
-
-
Field Details
-
EMPTY_ARRAY
-
-
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
-
parseString
-
getNames
-
getName
-
isDeprecated
-