JavaScript is disabled on your browser.
All Implemented Interfaces:
Serializable , Comparable <GameRule >, Constable
This enum stores each gamerule along with the value type and the default.
It is used to construct the list for the settings menu
Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
boolean
int
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
ADVANCE_TIME
public static final GameRule ADVANCE_TIME
ADVANCE_WEATHER
public static final GameRule ADVANCE_WEATHER
ALLOW_ENTERING_NETHER_USING_PORTALS
public static final GameRule ALLOW_ENTERING_NETHER_USING_PORTALS
BLOCK_DROPS
public static final GameRule BLOCK_DROPS
BLOCK_EXPLOSION_DROP_DECAY
public static final GameRule BLOCK_EXPLOSION_DROP_DECAY
COMMAND_BLOCKS_WORK
public static final GameRule COMMAND_BLOCKS_WORK
COMMAND_BLOCK_OUTPUT
public static final GameRule COMMAND_BLOCK_OUTPUT
DROWNING_DAMAGE
public static final GameRule DROWNING_DAMAGE
ELYTRA_MOVEMENT_CHECK
public static final GameRule ELYTRA_MOVEMENT_CHECK
ENDER_PEARLS_VANISH_ON_DEATH
public static final GameRule ENDER_PEARLS_VANISH_ON_DEATH
ENTITY_DROPS
public static final GameRule ENTITY_DROPS
FALL_DAMAGE
public static final GameRule FALL_DAMAGE
FIRE_DAMAGE
public static final GameRule FIRE_DAMAGE
FIRE_SPREAD_RADIUS_AROUND_PLAYER
public static final GameRule FIRE_SPREAD_RADIUS_AROUND_PLAYER
FORGIVE_DEAD_PLAYERS
public static final GameRule FORGIVE_DEAD_PLAYERS
FREEZE_DAMAGE
public static final GameRule FREEZE_DAMAGE
GLOBAL_SOUND_EVENTS
public static final GameRule GLOBAL_SOUND_EVENTS
KEEP_INVENTORY
public static final GameRule KEEP_INVENTORY
LAVA_SOURCE_CONVERSION
public static final GameRule LAVA_SOURCE_CONVERSION
LIMITED_CRAFTING
public static final GameRule LIMITED_CRAFTING
LOCATOR_BAR
public static final GameRule LOCATOR_BAR
LOG_ADMIN_COMMANDS
public static final GameRule LOG_ADMIN_COMMANDS
MAX_BLOCK_MODIFICATIONS
public static final GameRule MAX_BLOCK_MODIFICATIONS
MAX_COMMAND_FORKS
public static final GameRule MAX_COMMAND_FORKS
MAX_COMMAND_SEQUENCE_LENGTH
public static final GameRule MAX_COMMAND_SEQUENCE_LENGTH
MAX_ENTITY_CRAMMING
public static final GameRule MAX_ENTITY_CRAMMING
MAX_SNOW_ACCUMULATION_HEIGHT
public static final GameRule MAX_SNOW_ACCUMULATION_HEIGHT
MOB_EXPLOSION_DROP_DECAY
public static final GameRule MOB_EXPLOSION_DROP_DECAY
MOB_GRIEFING
public static final GameRule MOB_GRIEFING
NATURAL_HEALTH_REGENERATION
public static final GameRule NATURAL_HEALTH_REGENERATION
PLAYER_MOVEMENT_CHECK
public static final GameRule PLAYER_MOVEMENT_CHECK
PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
public static final GameRule PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
public static final GameRule PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
PLAYERS_SLEEPING_PERCENTAGE
public static final GameRule PLAYERS_SLEEPING_PERCENTAGE
PROJECTILES_CAN_BREAK_BLOCKS
public static final GameRule PROJECTILES_CAN_BREAK_BLOCKS
RANDOM_TICK_SPEED
public static final GameRule RANDOM_TICK_SPEED
REDUCED_DEBUG_INFO
public static final GameRule REDUCED_DEBUG_INFO
RESPAWN_RADIUS
public static final GameRule RESPAWN_RADIUS
SEND_COMMAND_FEEDBACK
public static final GameRule SEND_COMMAND_FEEDBACK
SHOW_ADVANCEMENT_MESSAGES
public static final GameRule SHOW_ADVANCEMENT_MESSAGES
SHOW_DEATH_MESSAGES
public static final GameRule SHOW_DEATH_MESSAGES
SPAWNER_BLOCKS_WORK
public static final GameRule SPAWNER_BLOCKS_WORK
SPAWN_MONSTERS
public static final GameRule SPAWN_MONSTERS
SPAWN_PATROLS
public static final GameRule SPAWN_PATROLS
SPAWN_PHANTOMS
public static final GameRule SPAWN_PHANTOMS
SPAWN_WANDERING_TRADERS
public static final GameRule SPAWN_WANDERING_TRADERS
SPAWN_WARDENS
public static final GameRule SPAWN_WARDENS
SPECTATORS_GENERATE_CHUNKS
public static final GameRule SPECTATORS_GENERATE_CHUNKS
SPREAD_VINES
public static final GameRule SPREAD_VINES
TNT_EXPLODES
public static final GameRule TNT_EXPLODES
TNT_EXPLOSION_DROP_DECAY
public static final GameRule TNT_EXPLOSION_DROP_DECAY
UNIVERSAL_ANGER
public static final GameRule UNIVERSAL_ANGER
WATER_SOURCE_CONVERSION
public static final GameRule WATER_SOURCE_CONVERSION
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 name
NullPointerException - if the argument is null
getDefaultBooleanValue
public boolean getDefaultBooleanValue ()
getDefaultIntValue
public int getDefaultIntValue ()
getTranslation
public String getTranslation ()
getType
public Class <?> getType ()