Uses of Class
net.minecraft.world.GameRules.Key
Packages that use GameRules.Key
-
Uses of GameRules.Key in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type GameRules.KeyModifier 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
Fields in net.minecraft.world declared as GameRules.KeyModifier and TypeFieldDescriptionstatic GameRules.Key<GameRules.BooleanRule>GameRules.ANNOUNCE_ADVANCEMENTSA game rule which regulates whether a player's advancements should be announced in chat.static GameRules.Key<GameRules.BooleanRule>GameRules.COMMAND_BLOCK_OUTPUTstatic GameRules.Key<GameRules.BooleanRule>GameRules.DISABLE_ELYTRA_MOVEMENT_CHECKstatic GameRules.Key<GameRules.BooleanRule>GameRules.DISABLE_RAIDSA game rule which regulates whether raids should occur.static GameRules.Key<GameRules.BooleanRule>GameRules.DO_DAYLIGHT_CYCLEstatic GameRules.Key<GameRules.BooleanRule>GameRules.DO_ENTITY_DROPSstatic GameRules.Key<GameRules.BooleanRule>GameRules.DO_FIRE_TICKstatic GameRules.Key<GameRules.BooleanRule>GameRules.DO_IMMEDIATE_RESPAWNA game rule which regulates whether a player should immediately respawn upon death.static GameRules.Key<GameRules.BooleanRule>GameRules.DO_INSOMNIAstatic GameRules.Key<GameRules.BooleanRule>GameRules.DO_LIMITED_CRAFTINGstatic GameRules.Key<GameRules.BooleanRule>GameRules.DO_MOB_GRIEFINGA game rule which regulates whether mobs can modify the world.static GameRules.Key<GameRules.BooleanRule>GameRules.DO_MOB_LOOTA game rule which regulates whether mobs should drop loot on death.static GameRules.Key<GameRules.BooleanRule>GameRules.DO_MOB_SPAWNINGA game rule which regulates whether mobs can spawn naturally.static GameRules.Key<GameRules.BooleanRule>GameRules.DO_PATROL_SPAWNINGstatic GameRules.Key<GameRules.BooleanRule>GameRules.DO_TILE_DROPSA game rule which regulates whether blocks should drop their items when broken.static GameRules.Key<GameRules.BooleanRule>GameRules.DO_TRADER_SPAWNINGstatic GameRules.Key<GameRules.BooleanRule>GameRules.DO_WEATHER_CYCLEstatic GameRules.Key<GameRules.BooleanRule>GameRules.DROWNING_DAMAGEstatic GameRules.Key<GameRules.BooleanRule>GameRules.FALL_DAMAGEstatic GameRules.Key<GameRules.BooleanRule>GameRules.FIRE_DAMAGEstatic GameRules.Key<GameRules.BooleanRule>GameRules.FORGIVE_DEAD_PLAYERSstatic GameRules.Key<GameRules.BooleanRule>GameRules.FREEZE_DAMAGEstatic GameRules.Key<GameRules.BooleanRule>GameRules.KEEP_INVENTORYA game rule which regulates whether player inventories should be persist through respawning.static GameRules.Key<GameRules.BooleanRule>GameRules.LOG_ADMIN_COMMANDSstatic GameRules.Key<GameRules.IntRule>GameRules.MAX_COMMAND_CHAIN_LENGTHstatic GameRules.Key<GameRules.IntRule>GameRules.MAX_ENTITY_CRAMMINGA 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_REGENERATIONstatic GameRules.Key<GameRules.IntRule>GameRules.PLAYERS_SLEEPING_PERCENTAGEstatic GameRules.Key<GameRules.IntRule>GameRules.RANDOM_TICK_SPEEDstatic GameRules.Key<GameRules.BooleanRule>GameRules.REDUCED_DEBUG_INFOstatic GameRules.Key<GameRules.BooleanRule>GameRules.SEND_COMMAND_FEEDBACKstatic GameRules.Key<GameRules.BooleanRule>GameRules.SHOW_DEATH_MESSAGESstatic GameRules.Key<GameRules.IntRule>GameRules.SPAWN_RADIUSstatic GameRules.Key<GameRules.BooleanRule>GameRules.SPECTATORS_GENERATE_CHUNKSstatic GameRules.Key<GameRules.BooleanRule>GameRules.UNIVERSAL_ANGERFields in net.minecraft.world with type parameters of type GameRules.KeyModifier and TypeFieldDescriptionprivate static Map<GameRules.Key<?>,GameRules.Type<?>>GameRules.RULE_TYPESprivate Map<GameRules.Key<?>,GameRules.Rule<?>>GameRules.rulesMethods in net.minecraft.world that return GameRules.KeyModifier and TypeMethodDescriptionprivate static <T extends GameRules.Rule<T>>
GameRules.Key<T>GameRules.register(String name, GameRules.Category category, GameRules.Type<T> type)Methods in net.minecraft.world with parameters of type GameRules.KeyModifier and TypeMethodDescriptionprivate static <T extends GameRules.Rule<T>>
voidGameRules.accept(GameRules.Visitor consumer, GameRules.Key<?> key, GameRules.Type<?> type)voidGameRules.Type.accept(GameRules.Visitor consumer, GameRules.Key<T> key)voidGameRules.Acceptor.call(GameRules.Visitor consumer, GameRules.Key<T> key, GameRules.Type<T> type)<T extends GameRules.Rule<T>>
TGameRules.get(GameRules.Key<T> key)booleanGameRules.getBoolean(GameRules.Key<GameRules.BooleanRule> rule)intGameRules.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 voidGameRules.Visitor.visitBoolean(GameRules.Key<GameRules.BooleanRule> key, GameRules.Type<GameRules.BooleanRule> type)Visit a boolean rule.default voidGameRules.Visitor.visitInt(GameRules.Key<GameRules.IntRule> key, GameRules.Type<GameRules.IntRule> type)Visit an integer rule.Constructor parameters in net.minecraft.world with type arguments of type GameRules.Key