Uses of Class
net.minecraft.world.level.gamerules.GameRule
Packages that use GameRule
Package
Description
-
Uses of GameRule in net.minecraft.client.gui.screens.worldselection
Methods in net.minecraft.client.gui.screens.worldselection with parameters of type GameRuleModifier and TypeMethodDescriptionEditGameRulesScreen.EntryFactory.create(Component label, List<FormattedCharSequence> tooltip, String description, GameRule<T> gameRule) Constructors in net.minecraft.client.gui.screens.worldselection with parameters of type GameRuleModifierConstructorDescriptionBooleanRuleEntry(Component label, List<FormattedCharSequence> tooltip, String description, GameRule<Boolean> gameRule) IntegerRuleEntry(Component label, List<FormattedCharSequence> tooltip, String description, GameRule<Integer> gameRule) -
Uses of GameRule in net.minecraft.core.registries
Fields in net.minecraft.core.registries with type parameters of type GameRule -
Uses of GameRule in net.minecraft.gametest.framework
Methods in net.minecraft.gametest.framework with parameters of type GameRuleModifier and TypeMethodDescriptionprivate <T> voidTestEnvironmentDefinition.SetGameRules.resetRule(ServerLevel level, GameRule<T> gameRule) -
Uses of GameRule in net.minecraft.server
Methods in net.minecraft.server with parameters of type GameRuleModifier and TypeMethodDescription<T> voidMinecraftServer.onGameRuleChanged(GameRule<T> gameRule, T value) -
Uses of GameRule in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type GameRuleModifier and TypeMethodDescription(package private) static <T> com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> GameRuleCommand.buildRuleArguments(GameRule<T> gameRule, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> builder) private static <T> intGameRuleCommand.queryRule(CommandSourceStack source, GameRule<T> gameRule) private static <T> intGameRuleCommand.setRule(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, GameRule<T> gameRule) -
Uses of GameRule in net.minecraft.server.jsonrpc
Methods in net.minecraft.server.jsonrpc with parameters of type GameRuleModifier and TypeMethodDescription<T> voidJsonRpcNotificationService.onGameRuleChanged(GameRule<T> p_461175_, T p_460639_) -
Uses of GameRule in net.minecraft.server.jsonrpc.internalapi
Methods in net.minecraft.server.jsonrpc.internalapi that return types with arguments of type GameRuleModifier and TypeMethodDescriptionMinecraftGameRuleService.getAvailableGameRules()MinecraftGameRuleServiceImpl.getAvailableGameRules()Methods in net.minecraft.server.jsonrpc.internalapi with parameters of type GameRuleModifier and TypeMethodDescription<T> TMinecraftGameRuleService.getRuleValue(GameRule<T> gameRule) <T> TMinecraftGameRuleServiceImpl.getRuleValue(GameRule<T> p_461191_) MinecraftGameRuleService.getTypedRule(GameRule<T> gameRule, T value) MinecraftGameRuleServiceImpl.getTypedRule(GameRule<T> p_460702_, T p_460925_) -
Uses of GameRule in net.minecraft.server.jsonrpc.methods
Fields in net.minecraft.server.jsonrpc.methods declared as GameRuleModifier and TypeFieldDescriptionGameRulesService.GameRuleUpdate.gameRuleThe field for thegameRulerecord component.Methods in net.minecraft.server.jsonrpc.methods that return GameRuleModifier and TypeMethodDescriptionGameRulesService.GameRuleUpdate.gameRule()Returns the value of thegameRulerecord component.Methods in net.minecraft.server.jsonrpc.methods with parameters of type GameRuleModifier and TypeMethodDescriptionprivate static <T> voidGameRulesService.addGameRule(MinecraftApi api, GameRule<T> gameRule, List<GameRulesService.GameRuleUpdate<?>> updates) static <T> GameRulesService.GameRuleUpdate<T> GameRulesService.getTypedRule(MinecraftApi api, GameRule<T> gameRule, T value) private static <T> GameRulesService.GameRuleUpdate<T> GameRulesService.GameRuleUpdate.getUntypedRule(GameRule<T> gameRule, GameRuleType type, T value) private static <T> com.mojang.serialization.MapCodec<? extends GameRulesService.GameRuleUpdate<T>> GameRulesService.GameRuleUpdate.getValueAndTypeCodec(GameRule<T> gameRule) private static <T> com.mojang.serialization.MapCodec<? extends GameRulesService.GameRuleUpdate<T>> GameRulesService.GameRuleUpdate.getValueCodec(GameRule<T> gameRule) Constructors in net.minecraft.server.jsonrpc.methods with parameters of type GameRuleModifierConstructorDescriptionGameRuleUpdate(GameRule<T> gameRule, T value) Creates an instance of aGameRuleUpdaterecord class. -
Uses of GameRule in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type GameRuleModifier and TypeMethodDescriptionprivate Explosion.BlockInteractionServerLevel.getDestroyType(GameRule<Boolean> gameRule) -
Uses of GameRule in net.minecraft.server.notifications
Methods in net.minecraft.server.notifications with parameters of type GameRuleModifier and TypeMethodDescription<T> voidEmptyNotificationService.onGameRuleChanged(GameRule<T> p_460858_, T p_461125_) <T> voidNotificationManager.onGameRuleChanged(GameRule<T> p_461031_, T p_460980_) <T> voidNotificationService.onGameRuleChanged(GameRule<T> gameRule, T value) -
Uses of GameRule in net.minecraft.world.level.gamerules
Fields in net.minecraft.world.level.gamerules declared as GameRuleModifier and TypeFieldDescriptionGameRules.ADVANCE_TIMEGameRules.ADVANCE_WEATHERGameRules.ALLOW_ENTERING_NETHER_USING_PORTALSGameRules.BLOCK_DROPSGameRules.BLOCK_EXPLOSION_DROP_DECAYGameRules.COMMAND_BLOCK_OUTPUTGameRules.COMMAND_BLOCKS_WORKGameRules.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.IMMEDIATE_RESPAWNGameRules.KEEP_INVENTORYGameRules.LAVA_SOURCE_CONVERSIONGameRules.LIMITED_CRAFTINGGameRules.LOCATOR_BARGameRules.LOG_ADMIN_COMMANDSGameRules.MAX_BLOCK_MODIFICATIONSGameRules.MAX_COMMAND_FORKSGameRules.MAX_COMMAND_SEQUENCE_LENGTHGameRules.MAX_ENTITY_CRAMMINGGameRules.MAX_MINECART_SPEEDGameRules.MAX_SNOW_ACCUMULATION_HEIGHTGameRules.MOB_DROPSGameRules.MOB_EXPLOSION_DROP_DECAYGameRules.MOB_GRIEFINGGameRules.NATURAL_HEALTH_REGENERATIONGameRules.PLAYER_MOVEMENT_CHECKGameRules.PLAYERS_NETHER_PORTAL_CREATIVE_DELAYGameRules.PLAYERS_NETHER_PORTAL_DEFAULT_DELAYGameRules.PLAYERS_SLEEPING_PERCENTAGEGameRules.PROJECTILES_CAN_BREAK_BLOCKSGameRules.PVPGameRules.RAIDSGameRules.RANDOM_TICK_SPEEDGameRules.REDUCED_DEBUG_INFOGameRules.RESPAWN_RADIUSGameRules.SEND_COMMAND_FEEDBACKGameRules.SHOW_ADVANCEMENT_MESSAGESGameRules.SHOW_DEATH_MESSAGESGameRules.SPAWN_MOBSGameRules.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.level.gamerules with type parameters of type GameRuleMethods in net.minecraft.world.level.gamerules that return GameRuleModifier and TypeMethodDescriptionstatic GameRule<?> static <T> GameRule<T> GameRules.register(String name, GameRuleCategory category, GameRuleType gameRuleType, com.mojang.brigadier.arguments.ArgumentType<T> argument, com.mojang.serialization.Codec<T> valueCodec, T defaultValue, FeatureFlagSet requiredFeatures, GameRules.VisitorCaller<T> visitorCaller, ToIntFunction<T> commandResultFunction) GameRules.registerBoolean(String name, GameRuleCategory category, boolean defaultValue) GameRules.registerInteger(String name, GameRuleCategory category, int defaultValue, int minValue) GameRules.registerInteger(String name, GameRuleCategory category, int defaultValue, int minValue, int maxValue) GameRules.registerInteger(String name, GameRuleCategory category, int defaultValue, int minValue, int maxValue, FeatureFlagSet requiredFeatures) Methods in net.minecraft.world.level.gamerules that return types with arguments of type GameRuleModifier and TypeMethodDescriptionGameRules.availableRules()GameRuleMap.keySet()GameRuleMap.map()Methods in net.minecraft.world.level.gamerules with parameters of type GameRuleModifier and TypeMethodDescriptionvoidGameRules.VisitorCaller.call(GameRuleTypeVisitor visitor, GameRule<T> gameRule) <T> @Nullable T<T> T<T> StringGameRules.getAsString(GameRule<T> gameRule) boolean<T> @Nullable T<T> void<T> voidGameRules.set(GameRule<T> gameRule, T value, @Nullable MinecraftServer server) private <T> voidGameRules.setFromOther(GameRuleMap gameRules, GameRule<T> gameRule, @Nullable MinecraftServer server) private static <T> voidGameRuleMap.setGameRule(GameRuleMap map, GameRule<T> gameRule, GameRuleMap source) default <T> voiddefault voidGameRuleTypeVisitor.visitBoolean(GameRule<Boolean> gameRule) default voidGameRuleTypeVisitor.visitInteger(GameRule<Integer> gameRule) Method parameters in net.minecraft.world.level.gamerules with type arguments of type GameRuleModifier and TypeMethodDescriptionstatic GameRule<?> static GameRuleMapprivate static GameRuleMapvoidGameRuleMap.setFromIf(GameRuleMap map, Predicate<GameRule<?>> predicate) Constructor parameters in net.minecraft.world.level.gamerules with type arguments of type GameRuleModifierConstructorDescription(package private)GameRuleMap(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<GameRule<?>, Object> map) -
Uses of GameRule in net.neoforged.neoforge.client.gamerules
Methods in net.neoforged.neoforge.client.gamerules with parameters of type GameRuleModifier and TypeMethodDescriptionstatic <T> voidGameRuleEntryFactoryManager.appendGameRuleEntry(EditGameRulesScreen screen, GameRule<T> gameRule, BiConsumer<GameRule<T>, EditGameRulesScreen.EntryFactory<T>> addEntry) GameRuleEntryFactory.create(EditGameRulesScreen screen, Component description, List<FormattedCharSequence> tooltip, String str, GameRule<T> gameRule) Method parameters in net.neoforged.neoforge.client.gamerules with type arguments of type GameRuleModifier and TypeMethodDescriptionstatic <T> voidGameRuleEntryFactoryManager.appendGameRuleEntry(EditGameRulesScreen screen, GameRule<T> gameRule, BiConsumer<GameRule<T>, EditGameRulesScreen.EntryFactory<T>> addEntry) Constructors in net.neoforged.neoforge.client.gamerules with parameters of type GameRuleModifierConstructorDescriptionGenericGameRuleEntry(EditGameRulesScreen screen, Component label, List<FormattedCharSequence> tooltip, String str, GameRule<T> gameRule) -
Uses of GameRule in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type GameRuleModifier and TypeMethodDescriptionstatic <T> voidEventHooks.onGameRuleChanged(MinecraftServer server, GameRule<T> gameRule, T newValue) -
Uses of GameRule in net.neoforged.neoforge.event.level
Fields in net.neoforged.neoforge.event.level declared as GameRuleMethods in net.neoforged.neoforge.event.level that return GameRuleMethods in net.neoforged.neoforge.event.level with parameters of type GameRuleModifier and TypeMethodDescription<T> voidGameRuleChangedEvent.runIfMatching(GameRule<T> gameRule, Consumer<T> action) Constructors in net.neoforged.neoforge.event.level with parameters of type GameRuleModifierConstructorDescriptionGameRuleChangedEvent(MinecraftServer server, GameRule<T> gameRule, T newValue)