public enum GameRule extends Enum<GameRule>
| Modifier and Type | Class and Description |
|---|---|
static class |
GameRule.Type |
| Modifier and Type | Method and Description |
|---|---|
static GameRule |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameRule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameRule COMMAND_BLOCK_OUTPUT
public static final GameRule DO_DAYLIGHT_CYCLE
public static final GameRule DO_ENTITY_DROPS
public static final GameRule DO_FIRE_TICK
public static final GameRule DO_MOB_LOOT
public static final GameRule DO_MOB_SPAWNING
public static final GameRule DO_TILE_DROPS
public static final GameRule DO_WEATHER_CYCLE
public static final GameRule DROWNING_DAMAGE
public static final GameRule FALL_DAMAGE
public static final GameRule FIRE_DAMAGE
public static final GameRule KEEP_INVENTORY
public static final GameRule MOB_GRIEFING
public static final GameRule PVP
public static final GameRule SHOW_COORDINATES
public static final GameRule NATURAL_REGENERATION
public static final GameRule TNT_EXPLODES
public static final GameRule SEND_COMMAND_FEEDBACK
public static GameRule[] values()
for (GameRule c : GameRule.values()) System.out.println(c);
public static GameRule valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017–2020 NukkitX. All rights reserved.