Uses of Class
net.minecraft.world.rule.ServerGameRules
Packages that use ServerGameRules
Package
Description
-
Uses of ServerGameRules in net.minecraft.client.gui.screen.world
Fields in net.minecraft.client.gui.screen.world declared as ServerGameRulesModifier and TypeFieldDescriptionprivate final ServerGameRulesInitialWorldOptions.gameRuleOverwritesThe field for thegameRuleOverwritesrecord component.Methods in net.minecraft.client.gui.screen.world that return ServerGameRulesModifier and TypeMethodDescriptionInitialWorldOptions.gameRuleOverwrites()Returns the value of thegameRuleOverwritesrecord component.Constructors in net.minecraft.client.gui.screen.world with parameters of type ServerGameRulesModifierConstructorDescriptionInitialWorldOptions(WorldCreator.Mode selectedGameMode, ServerGameRules gameRuleOverwrites, @Nullable RegistryKey<FlatLevelGeneratorPreset> flatLevelPreset) Creates an instance of aInitialWorldOptionsrecord class. -
Uses of ServerGameRules in net.minecraft.test
Fields in net.minecraft.test declared as ServerGameRulesModifier and TypeFieldDescriptionprivate final ServerGameRulesTestEnvironmentDefinition.GameRules.gameRulesMapThe field for thegameRulesMaprecord component.Methods in net.minecraft.test that return ServerGameRulesModifier and TypeMethodDescriptionTestEnvironmentDefinition.GameRules.gameRulesMap()Returns the value of thegameRulesMaprecord component.Constructors in net.minecraft.test with parameters of type ServerGameRulesModifierConstructorDescriptionGameRules(ServerGameRules gameRulesMap) Creates an instance of aGameRulesrecord class. -
Uses of ServerGameRules in net.minecraft.world.rule
Fields in net.minecraft.world.rule declared as ServerGameRulesFields in net.minecraft.world.rule with type parameters of type ServerGameRulesModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ServerGameRules> ServerGameRules.CODECMethods in net.minecraft.world.rule that return ServerGameRulesModifier and TypeMethodDescriptionServerGameRules.Builder.build()static ServerGameRulesServerGameRules.copyFrom(ServerGameRules rules) static ServerGameRulesServerGameRules.create()private static ServerGameRulesstatic ServerGameRulesServerGameRules.merge(ServerGameRules override) Methods in net.minecraft.world.rule with parameters of type ServerGameRulesModifier and TypeMethodDescriptionstatic ServerGameRulesServerGameRules.copyFrom(ServerGameRules rules) private static <T> voidServerGameRules.copyValue(ServerGameRules oldRules, GameRule<T> rule, ServerGameRules newRules) voidServerGameRules.copyValuesIf(ServerGameRules rules, Predicate<GameRule<?>> predicate) ServerGameRules.merge(ServerGameRules override) private <T> voidGameRules.updateValue(ServerGameRules rules, GameRule<T> rule, @Nullable MinecraftServer server) voidGameRules.updateValues(ServerGameRules rules, @Nullable MinecraftServer server) Constructors in net.minecraft.world.rule with parameters of type ServerGameRules