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 pLabel, List<FormattedCharSequence> pTooltip, String pDescription, GameRule<T> pGameRule) Constructors in net.minecraft.client.gui.screens.worldselection with parameters of type GameRuleModifierConstructorDescriptionBooleanRuleEntry(Component pLabel, List<FormattedCharSequence> pTooltip, String pDescription, GameRule<Boolean> pGameRule) IntegerRuleEntry(Component pLabel, List<FormattedCharSequence> pTooltip, String pDescription, GameRule<Integer> pGameRule) -
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 pLevel, GameRule<T> pGameRule) -
Uses of GameRule in net.minecraft.server
Methods in net.minecraft.server with parameters of type GameRuleModifier and TypeMethodDescription<T> voidMinecraftServer.onGameRuleChanged(GameRule<T> pGameRule, T pValue) -
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> pGameRule, com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> pBuilder) private static <T> intGameRuleCommand.queryRule(CommandSourceStack pSource, GameRule<T> pGameRule) private static <T> intGameRuleCommand.setRule(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, GameRule<T> pGameRule) -
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> pGameRule) <T> TMinecraftGameRuleServiceImpl.getRuleValue(GameRule<T> p_461191_) MinecraftGameRuleService.getTypedRule(GameRule<T> pGameRule, T pValue) 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 pApi, GameRule<T> pGameRule, List<GameRulesService.GameRuleUpdate<?>> pUpdates) static <T> GameRulesService.GameRuleUpdate<T> GameRulesService.getTypedRule(MinecraftApi pApi, GameRule<T> pGameRule, T pValue) private static <T> GameRulesService.GameRuleUpdate<T> GameRulesService.GameRuleUpdate.getUntypedRule(GameRule<T> pGameRule, GameRuleType pType, T pValue) private static <T> com.mojang.serialization.MapCodec<? extends GameRulesService.GameRuleUpdate<T>> GameRulesService.GameRuleUpdate.getValueAndTypeCodec(GameRule<T> pGameRule) private static <T> com.mojang.serialization.MapCodec<? extends GameRulesService.GameRuleUpdate<T>> GameRulesService.GameRuleUpdate.getValueCodec(GameRule<T> pGameRule) 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> pGameRule) -
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> pGameRule, T pValue) -
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 pName, GameRuleCategory pCategory, GameRuleType pGameRuleType, com.mojang.brigadier.arguments.ArgumentType<T> pArgument, com.mojang.serialization.Codec<T> pValueCodec, T pDefaultValue, FeatureFlagSet pRequiredFeatures, GameRules.VisitorCaller<T> pVisitorCaller, ToIntFunction<T> pCommandResultFunction) GameRules.registerBoolean(String pName, GameRuleCategory pCategory, boolean pDefaultValue) GameRules.registerInteger(String pName, GameRuleCategory pCategory, int pDefaultValue, int pMinValue) GameRules.registerInteger(String pName, GameRuleCategory pCategory, int pDefaultValue, int pMinValue, int pMaxValue) GameRules.registerInteger(String pName, GameRuleCategory pCategory, int pDefaultValue, int pMinValue, int pMaxValue, FeatureFlagSet pRequiredFeatures) 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 pVisitor, GameRule<T> pGameRule) <T> @Nullable T<T> T<T> StringGameRules.getAsString(GameRule<T> pGameRule) boolean<T> @Nullable T<T> void<T> voidGameRules.set(GameRule<T> pGameRule, T pValue, @Nullable MinecraftServer pServer) private <T> voidGameRules.setFromOther(GameRuleMap pGameRules, GameRule<T> pGameRule, @Nullable MinecraftServer pServer) private static <T> voidGameRuleMap.setGameRule(GameRuleMap pMap, GameRule<T> pGameRule, GameRuleMap pSource) default <T> voiddefault voidGameRuleTypeVisitor.visitBoolean(GameRule<Boolean> pGameRule) default voidGameRuleTypeVisitor.visitInteger(GameRule<Integer> pGameRule) Method parameters in net.minecraft.world.level.gamerules with type arguments of type GameRuleModifier and TypeMethodDescriptionstatic GameRule<?> static GameRuleMapprivate static GameRuleMapvoidGameRuleMap.setFromIf(GameRuleMap pMap, Predicate<GameRule<?>> pPredicate) 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> pMap) -
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)