Uses of Class
net.minecraft.world.rule.GameRule
Packages that use GameRule
Package
Description
-
Uses of GameRule in net.minecraft.client.gui.screen.world
Methods in net.minecraft.client.gui.screen.world with parameters of type GameRuleModifier and TypeMethodDescriptionEditGameRulesScreen.RuleWidgetFactory.create(Text name, List<OrderedText> description, String ruleName, GameRule<T> rule) Constructors in net.minecraft.client.gui.screen.world with parameters of type GameRuleModifierConstructorDescriptionBooleanRuleWidget(Text text, List<OrderedText> list, String ruleName, GameRule<Boolean> gameRule) IntRuleWidget(Text name, List<OrderedText> description, String ruleName, GameRule<Integer> rule) -
Uses of GameRule in net.minecraft.registry
Fields in net.minecraft.registry with type parameters of type GameRule -
Uses of GameRule in net.minecraft.server
Methods in net.minecraft.server with parameters of type GameRuleModifier and TypeMethodDescription<T> voidMinecraftServer.onGameRuleUpdated(GameRule<T> gameRule, T t) -
Uses of GameRule in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type GameRuleModifier and TypeMethodDescription(package private) static <T> intGameRuleCommand.executeQuery(ServerCommandSource source, GameRule<T> key) (package private) static <T> intGameRuleCommand.executeSet(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, GameRule<T> key) -
Uses of GameRule in net.minecraft.server.dedicated.management.dispatch
Fields in net.minecraft.server.dedicated.management.dispatch declared as GameRuleModifier and TypeFieldDescriptionGameRuleRpcDispatcher.class_12254.gameRuleThe field for thegameRulerecord component.Methods in net.minecraft.server.dedicated.management.dispatch that return GameRuleModifier and TypeMethodDescriptionGameRuleRpcDispatcher.class_12254.gameRule()Returns the value of thegameRulerecord component.Methods in net.minecraft.server.dedicated.management.dispatch with parameters of type GameRuleModifier and TypeMethodDescriptionprivate static <T> voidGameRuleRpcDispatcher.method_76047(ManagementHandlerDispatcher managementHandlerDispatcher, GameRule<T> gameRule, List<GameRuleRpcDispatcher.class_12254<?>> list) private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher.class_12254<T>> GameRuleRpcDispatcher.class_12254.method_76050(GameRule<T> gameRule) private static <T> GameRuleRpcDispatcher.class_12254<T> GameRuleRpcDispatcher.class_12254.method_76052(GameRule<T> gameRule, GameRuleType gameRuleType, T t) private static <T> com.mojang.serialization.MapCodec<? extends GameRuleRpcDispatcher.class_12254<T>> GameRuleRpcDispatcher.class_12254.method_76054(GameRule<T> gameRule) static <T> GameRuleRpcDispatcher.class_12254<T> GameRuleRpcDispatcher.toTypedRule(ManagementHandlerDispatcher dispatcher, GameRule<T> gameRule, T t) Constructors in net.minecraft.server.dedicated.management.dispatch with parameters of type GameRuleModifierConstructorDescriptionclass_12254(GameRule<T> gameRule, T value) Creates an instance of aclass_12254record class. -
Uses of GameRule in net.minecraft.server.dedicated.management.handler
Methods in net.minecraft.server.dedicated.management.handler that return types with arguments of type GameRuleModifier and TypeMethodDescriptionGameRuleManagementHandler.getRules()GameRuleManagementHandlerImpl.getRules()Methods in net.minecraft.server.dedicated.management.handler with parameters of type GameRuleModifier and TypeMethodDescription<T> T<T> TGameRuleManagementHandler.toTypedRule(GameRule<T> gameRule, T t) GameRuleManagementHandlerImpl.toTypedRule(GameRule<T> gameRule, T t) -
Uses of GameRule in net.minecraft.server.dedicated.management.listener
Methods in net.minecraft.server.dedicated.management.listener with parameters of type GameRuleModifier and TypeMethodDescription<T> voidBlankManagementListener.onGameRuleUpdated(GameRule<T> gameRule, T t) <T> voidCompositeManagementListener.onGameRuleUpdated(GameRule<T> gameRule, T t) <T> voidManagementListener.onGameRuleUpdated(GameRule<T> gameRule, T t) <T> voidNotificationManagementListener.onGameRuleUpdated(GameRule<T> gameRule, T t) -
Uses of GameRule in net.minecraft.server.world
Methods in net.minecraft.server.world with parameters of type GameRuleModifier and TypeMethodDescriptionprivate Explosion.DestructionTypeServerWorld.getDestructionType(GameRule<Boolean> decayRule) -
Uses of GameRule in net.minecraft.test
Methods in net.minecraft.test with parameters of type GameRuleModifier and TypeMethodDescriptionprivate <T> voidTestEnvironmentDefinition.GameRules.resetValue(ServerWorld serverWorld, GameRule<T> rule) -
Uses of GameRule in net.minecraft.world
Methods in net.minecraft.world with parameters of type GameRule -
Uses of GameRule in net.minecraft.world.rule
Fields in net.minecraft.world.rule declared as GameRuleModifier and TypeFieldDescriptionGameRules.ADVANCE_TIMEGameRules.ADVANCE_WEATHERGameRules.ALLOW_ENTERING_NETHER_USING_PORTALSGameRules.ANNOUNCE_ADVANCEMENTSAwhich regulates whether a player's advancements should be announced in chat.invalid reference
game rule
GameRules.BLOCK_EXPLOSION_DROP_DECAYGameRules.COMMAND_BLOCK_OUTPUTGameRules.COMMAND_BLOCKS_WORKGameRules.DISABLE_RAIDSAwhich regulates whether raids should occur.invalid reference
game rule
GameRules.DO_IMMEDIATE_RESPAWNAwhich regulates whether a player should immediately respawn upon death.invalid reference
game rule
GameRules.DO_MOB_GRIEFINGAwhich regulates whether mobs can modify the world.invalid reference
game rule
GameRules.DO_MOB_LOOTAwhich regulates whether mobs should drop loot on death.invalid reference
game rule
GameRules.DO_MOB_SPAWNINGAwhich regulates whether mobs can spawn naturally.invalid reference
game rule
GameRules.DO_TILE_DROPSAwhich regulates whether blocks should drop their items when broken.invalid reference
game rule
GameRules.DROWNING_DAMAGEGameRules.ELYTRA_MOVEMENT_CHECKGameRules.ENDER_PEARLS_VANISH_ON_DEATHGameRules.ENTITY_DROPSGameRules.FALL_DAMAGEGameRules.FIRE_DAMAGEGameRules.FIRE_SPREAD_RADIUS_AROUND_PLAYERGameRules.FORGIVE_DEAD_PLAYERSGameRules.FREEZE_DAMAGEGameRules.GLOBAL_SOUND_EVENTSGameRules.KEEP_INVENTORYAwhich regulates whether player inventories should be persist through respawning.invalid reference
game rule
GameRules.LAVA_SOURCE_CONVERSIONGameRules.LIMITED_CRAFTINGGameRules.LOCATOR_BARGameRules.LOG_ADMIN_COMMANDSGameRules.MAX_BLOCK_MODIFICATIONSGameRules.MAX_COMMAND_FORKSGameRules.MAX_COMMAND_SEQUENCE_LENGTHGameRules.MAX_ENTITY_CRAMMINGAwhich regulates the number of entities that can be crammed into a block space before they incur cramming damage.invalid reference
game rule
GameRules.MAX_MINECART_SPEEDGameRules.MAX_SNOW_ACCUMULATION_HEIGHTGameRules.MOB_EXPLOSION_DROP_DECAYGameRules.NATURAL_HEALTH_REGENERATIONGameRules.PLAYER_MOVEMENT_CHECKGameRules.PLAYERS_NETHER_PORTAL_CREATIVE_DELAYGameRules.PLAYERS_NETHER_PORTAL_DEFAULT_DELAYGameRules.PLAYERS_SLEEPING_PERCENTAGEGameRules.PROJECTILES_CAN_BREAK_BLOCKSGameRules.PVPGameRules.RANDOM_TICK_SPEEDGameRules.REDUCED_DEBUG_INFOAwhich regulates whether clients' debug HUDs show reduced information.invalid reference
game rule
GameRules.RESPAWN_RADIUSGameRules.SEND_COMMAND_FEEDBACKGameRules.SHOW_DEATH_MESSAGESGameRules.SPAWN_MONSTERSGameRules.SPAWN_PATROLSGameRules.SPAWN_PHANTOMSGameRules.SPAWN_WANDERING_TRADERSGameRules.SPAWN_WARDENSGameRules.SPAWNER_BLOCKS_WORKGameRules.SPECTATORS_GENERATE_CHUNKSGameRules.SPREAD_VINESGameRules.TNT_EXPLODESGameRules.TNT_EXPLOSION_DROP_DECAYGameRules.UNIVERSAL_ANGERGameRules.WATER_SOURCE_CONVERSIONFields in net.minecraft.world.rule with type parameters of type GameRuleModifier and TypeFieldDescription(package private) final Reference2ObjectMap<GameRule<?>, Object> ServerGameRules.Builder.ruleValueMapprivate final Reference2ObjectMap<GameRule<?>, Object> ServerGameRules.ruleValueMapMethods in net.minecraft.world.rule that return GameRuleModifier and TypeMethodDescriptionstatic GameRule<?> GameRules.getDefault(Registry<GameRule<?>> registry) private static <T> GameRule<T> GameRules.register(String name, Category category, GameRuleType type, com.mojang.brigadier.arguments.ArgumentType<T> argumentType, com.mojang.serialization.Codec<T> codec, T defaultValue, FeatureSet featureSet, GameRules.Acceptor<T> acceptor, ToIntFunction<T> commandResultSupplier) GameRules.registerBooleanRule(String name, Category category, boolean defaultValue) GameRules.registerIntRule(String name, Category category, int defaultValue, int minValue) GameRules.registerIntRule(String name, Category category, int defaultValue, int minValue, int maxValue) GameRules.registerIntRule(String name, Category category, int defaultValue, int minValue, int maxValue, FeatureSet featureSet) Methods in net.minecraft.world.rule that return types with arguments of type GameRuleModifier and TypeMethodDescriptionServerGameRules.getRules()private Reference2ObjectMap<GameRule<?>, Object> ServerGameRules.getRuleValueMap()GameRules.streamRules()Methods in net.minecraft.world.rule with parameters of type GameRuleModifier and TypeMethodDescriptionvoidbooleanprivate static <T> voidServerGameRules.copyValue(ServerGameRules oldRules, GameRule<T> rule, ServerGameRules newRules) <T> StringGameRules.getRuleValueName(GameRule<T> rule) <T> T<T> @Nullable T<T> void<T> @Nullable T<T> voidGameRules.setValue(GameRule<T> rule, T value, @Nullable MinecraftServer server) private <T> voidGameRules.updateValue(ServerGameRules rules, GameRule<T> rule, @Nullable MinecraftServer server) Method parameters in net.minecraft.world.rule with type arguments of type GameRuleModifier and TypeMethodDescriptionvoidServerGameRules.copyValuesIf(ServerGameRules rules, Predicate<GameRule<?>> predicate) private static ServerGameRulesstatic ServerGameRulesstatic GameRule<?> GameRules.getDefault(Registry<GameRule<?>> registry) Constructor parameters in net.minecraft.world.rule with type arguments of type GameRuleModifierConstructorDescription(package private)ServerGameRules(Reference2ObjectMap<GameRule<?>, Object> reference2ObjectMap)