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 final GameRules.Key<GameRules.BooleanRule>
GameRules.ANNOUNCE_ADVANCEMENTS
A game rule which regulates whether a player's advancements should be announced in chat.static final GameRules.Key<GameRules.BooleanRule>
GameRules.BLOCK_EXPLOSION_DROP_DECAY
static final GameRules.Key<GameRules.BooleanRule>
GameRules.COMMAND_BLOCK_OUTPUT
static final GameRules.Key<GameRules.IntRule>
GameRules.COMMAND_MODIFICATION_BLOCK_LIMIT
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DISABLE_ELYTRA_MOVEMENT_CHECK
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DISABLE_RAIDS
A game rule which regulates whether raids should occur.static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_DAYLIGHT_CYCLE
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_ENTITY_DROPS
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_FIRE_TICK
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_IMMEDIATE_RESPAWN
A game rule which regulates whether a player should immediately respawn upon death.static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_INSOMNIA
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_LIMITED_CRAFTING
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_MOB_GRIEFING
A game rule which regulates whether mobs can modify the world.static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_MOB_LOOT
A game rule which regulates whether mobs should drop loot on death.static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_MOB_SPAWNING
A game rule which regulates whether mobs can spawn naturally.static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_PATROL_SPAWNING
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_TILE_DROPS
A game rule which regulates whether blocks should drop their items when broken.static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_TRADER_SPAWNING
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_VINES_SPREAD
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_WARDEN_SPAWNING
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DO_WEATHER_CYCLE
static final GameRules.Key<GameRules.BooleanRule>
GameRules.DROWNING_DAMAGE
static final GameRules.Key<GameRules.BooleanRule>
GameRules.FALL_DAMAGE
static final GameRules.Key<GameRules.BooleanRule>
GameRules.FIRE_DAMAGE
static final GameRules.Key<GameRules.BooleanRule>
GameRules.FORGIVE_DEAD_PLAYERS
static final GameRules.Key<GameRules.BooleanRule>
GameRules.FREEZE_DAMAGE
static final GameRules.Key<GameRules.BooleanRule>
GameRules.GLOBAL_SOUND_EVENTS
static final GameRules.Key<GameRules.BooleanRule>
GameRules.KEEP_INVENTORY
A game rule which regulates whether player inventories should be persist through respawning.static final GameRules.Key<GameRules.BooleanRule>
GameRules.LAVA_SOURCE_CONVERSION
static final GameRules.Key<GameRules.BooleanRule>
GameRules.LOG_ADMIN_COMMANDS
static final GameRules.Key<GameRules.IntRule>
GameRules.MAX_COMMAND_CHAIN_LENGTH
static final 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 final GameRules.Key<GameRules.BooleanRule>
GameRules.MOB_EXPLOSION_DROP_DECAY
static final GameRules.Key<GameRules.BooleanRule>
GameRules.NATURAL_REGENERATION
static final GameRules.Key<GameRules.IntRule>
GameRules.PLAYERS_SLEEPING_PERCENTAGE
static final GameRules.Key<GameRules.IntRule>
GameRules.RANDOM_TICK_SPEED
static final GameRules.Key<GameRules.BooleanRule>
GameRules.REDUCED_DEBUG_INFO
static final GameRules.Key<GameRules.BooleanRule>
GameRules.SEND_COMMAND_FEEDBACK
static final GameRules.Key<GameRules.BooleanRule>
GameRules.SHOW_DEATH_MESSAGES
static final GameRules.Key<GameRules.IntRule>
GameRules.SNOW_ACCUMULATION_HEIGHT
static final GameRules.Key<GameRules.IntRule>
GameRules.SPAWN_RADIUS
static final GameRules.Key<GameRules.BooleanRule>
GameRules.SPECTATORS_GENERATE_CHUNKS
static final GameRules.Key<GameRules.BooleanRule>
GameRules.TNT_EXPLOSION_DROP_DECAY
static final GameRules.Key<GameRules.BooleanRule>
GameRules.UNIVERSAL_ANGER
static final GameRules.Key<GameRules.BooleanRule>
GameRules.WATER_SOURCE_CONVERSION
Modifier and TypeFieldDescriptionprivate static final Map<GameRules.Key<?>,
GameRules.Type<?>> GameRules.RULE_TYPES
private final 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) private Explosion.DestructionType
World.getDestructionType
(GameRules.Key<GameRules.BooleanRule> gameRuleKey) 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.