Uses of Class
net.minecraft.world.GameRules.Key
-
Uses of GameRules.Key in net.minecraft.server.command
Modifier and TypeMethodDescription(package private) static <T extends GameRules.Rule<T>>
intGameRuleCommand.executeQuery(ServerCommandSource source, GameRules.Key<T> key)
(package private) static <T extends GameRules.Rule<T>>
intGameRuleCommand.executeSet(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, GameRules.Key<T> key)
-
Uses of GameRules.Key in net.minecraft.world
Modifier and TypeFieldDescriptionstatic GameRules.Key<GameRules.BooleanRule>
GameRules.ANNOUNCE_ADVANCEMENTS
A game rule which regulates whether a player's advancements should be announced in chat.static GameRules.Key<GameRules.BooleanRule>
GameRules.COMMAND_BLOCK_OUTPUT
static GameRules.Key<GameRules.BooleanRule>
GameRules.DISABLE_ELYTRA_MOVEMENT_CHECK
static GameRules.Key<GameRules.BooleanRule>
GameRules.DISABLE_RAIDS
A game rule which regulates whether raids should occur.static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_DAYLIGHT_CYCLE
static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_ENTITY_DROPS
static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_FIRE_TICK
static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_IMMEDIATE_RESPAWN
A game rule which regulates whether a player should immediately respawn upon death.static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_INSOMNIA
static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_LIMITED_CRAFTING
static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_MOB_GRIEFING
A game rule which regulates whether mobs can modify the world.static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_MOB_LOOT
A game rule which regulates whether mobs should drop loot on death.static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_MOB_SPAWNING
A game rule which regulates whether mobs can spawn naturally.static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_PATROL_SPAWNING
static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_TILE_DROPS
A game rule which regulates whether blocks should drop their items when broken.static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_TRADER_SPAWNING
static GameRules.Key<GameRules.BooleanRule>
GameRules.DO_WEATHER_CYCLE
static GameRules.Key<GameRules.BooleanRule>
GameRules.DROWNING_DAMAGE
static GameRules.Key<GameRules.BooleanRule>
GameRules.FALL_DAMAGE
static GameRules.Key<GameRules.BooleanRule>
GameRules.FIRE_DAMAGE
static GameRules.Key<GameRules.BooleanRule>
GameRules.FORGIVE_DEAD_PLAYERS
static GameRules.Key<GameRules.BooleanRule>
GameRules.FREEZE_DAMAGE
static GameRules.Key<GameRules.BooleanRule>
GameRules.KEEP_INVENTORY
A game rule which regulates whether player inventories should be persist through respawning.static GameRules.Key<GameRules.BooleanRule>
GameRules.LOG_ADMIN_COMMANDS
static GameRules.Key<GameRules.IntRule>
GameRules.MAX_COMMAND_CHAIN_LENGTH
static GameRules.Key<GameRules.IntRule>
GameRules.MAX_ENTITY_CRAMMING
A game rule which regulates the number of entities that can be crammed into a block space before they incur cramming damage.static GameRules.Key<GameRules.BooleanRule>
GameRules.NATURAL_REGENERATION
static GameRules.Key<GameRules.IntRule>
GameRules.PLAYERS_SLEEPING_PERCENTAGE
static GameRules.Key<GameRules.IntRule>
GameRules.RANDOM_TICK_SPEED
static GameRules.Key<GameRules.BooleanRule>
GameRules.REDUCED_DEBUG_INFO
static GameRules.Key<GameRules.BooleanRule>
GameRules.SEND_COMMAND_FEEDBACK
static GameRules.Key<GameRules.BooleanRule>
GameRules.SHOW_DEATH_MESSAGES
static GameRules.Key<GameRules.IntRule>
GameRules.SPAWN_RADIUS
static GameRules.Key<GameRules.BooleanRule>
GameRules.SPECTATORS_GENERATE_CHUNKS
static GameRules.Key<GameRules.BooleanRule>
GameRules.UNIVERSAL_ANGER
Modifier and TypeFieldDescriptionprivate static Map<GameRules.Key<?>,GameRules.Type<?>>
GameRules.RULE_TYPES
private Map<GameRules.Key<?>,GameRules.Rule<?>>
GameRules.rules
Modifier and TypeMethodDescriptionprivate static <T extends GameRules.Rule<T>>
GameRules.Key<T>GameRules.register(String name, GameRules.Category category, GameRules.Type<T> type)
Modifier and TypeMethodDescriptionprivate static <T extends GameRules.Rule<T>>
voidGameRules.accept(GameRules.Visitor consumer, GameRules.Key<?> key, GameRules.Type<?> type)
void
GameRules.Type.accept(GameRules.Visitor consumer, GameRules.Key<T> key)
void
GameRules.Acceptor.call(GameRules.Visitor consumer, GameRules.Key<T> key, GameRules.Type<T> type)
<T extends GameRules.Rule<T>>
TGameRules.get(GameRules.Key<T> key)
boolean
GameRules.getBoolean(GameRules.Key<GameRules.BooleanRule> rule)
int
GameRules.getInt(GameRules.Key<GameRules.IntRule> rule)
private <T extends GameRules.Rule<T>>
voidGameRules.setValue(GameRules.Key<T> key, GameRules rules, @Nullable MinecraftServer server)
default <T extends GameRules.Rule<T>>
voidGameRules.Visitor.visit(GameRules.Key<T> key, GameRules.Type<T> type)
Visit a game rule.default void
GameRules.Visitor.visitBoolean(GameRules.Key<GameRules.BooleanRule> key, GameRules.Type<GameRules.BooleanRule> type)
Visit a boolean rule.default void
GameRules.Visitor.visitInt(GameRules.Key<GameRules.IntRule> key, GameRules.Type<GameRules.IntRule> type)
Visit an integer rule.