Uses of Class
net.minecraft.world.level.GameRules.Key
Packages that use GameRules.Key
Package
Description
-
Uses of GameRules.Key in net.minecraft.client.gui.screens.worldselection
Fields in net.minecraft.client.gui.screens.worldselection with type parameters of type GameRules.KeyModifier and TypeFieldDescriptionprivate final Set
<GameRules.Key<GameRules.BooleanValue>> InitialWorldCreationOptions.disabledGameRules
The field for thedisabledGameRules
record component.Methods in net.minecraft.client.gui.screens.worldselection that return types with arguments of type GameRules.KeyModifier and TypeMethodDescriptionInitialWorldCreationOptions.disabledGameRules()
Returns the value of thedisabledGameRules
record component.Constructor parameters in net.minecraft.client.gui.screens.worldselection with type arguments of type GameRules.KeyModifierConstructorDescriptionInitialWorldCreationOptions
(WorldCreationUiState.SelectedGameMode selectedGameMode, Set<GameRules.Key<GameRules.BooleanValue>> disabledGameRules, ResourceKey<FlatLevelGeneratorPreset> flatLevelPreset) Creates an instance of aInitialWorldCreationOptions
record class. -
Uses of GameRules.Key in net.minecraft.gametest.framework
Fields in net.minecraft.gametest.framework declared as GameRules.KeyModifier and TypeFieldDescriptionprivate final GameRules.Key
<T> TestEnvironmentDefinition.SetGameRules.Entry.key
The field for thekey
record component.Methods in net.minecraft.gametest.framework that return GameRules.KeyModifier and TypeMethodDescriptionTestEnvironmentDefinition.SetGameRules.Entry.key()
Returns the value of thekey
record component.Methods in net.minecraft.gametest.framework with parameters of type GameRules.KeyModifier and TypeMethodDescriptionstatic <S,
T extends GameRules.Value<T>>
TestEnvironmentDefinition.SetGameRules.Entry<S, T> TestEnvironmentDefinition.SetGameRules.entry
(GameRules.Key<T> pKey, S pValue) Constructors in net.minecraft.gametest.framework with parameters of type GameRules.KeyModifierConstructorDescriptionEntry
(GameRules.Key<T> key, S value) Creates an instance of aEntry
record class. -
Uses of GameRules.Key in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type GameRules.KeyModifier and TypeMethodDescription(package private) static <T extends GameRules.Value<T>>
intGameRuleCommand.queryRule
(CommandSourceStack pSource, GameRules.Key<T> pGameRule) (package private) static <T extends GameRules.Value<T>>
intGameRuleCommand.setRule
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137755_, GameRules.Key<T> p_137756_) -
Uses of GameRules.Key in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type GameRules.KeyModifier and TypeMethodDescriptionprivate Explosion.BlockInteraction
ServerLevel.getDestroyType
(GameRules.Key<GameRules.BooleanValue> pDecayGameRule) -
Uses of GameRules.Key in net.minecraft.world.level
Fields in net.minecraft.world.level declared as GameRules.KeyModifier and TypeFieldDescriptionstatic final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_ALLOWFIRETICKAWAYFROMPLAYERS
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_ANNOUNCE_ADVANCEMENTS
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_BLOCK_EXPLOSION_DROP_DECAY
static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_COMMAND_MODIFICATION_BLOCK_LIMIT
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_COMMANDBLOCKOUTPUT
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DAYLIGHT
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DISABLE_ELYTRA_MOVEMENT_CHECK
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DISABLE_PLAYER_MOVEMENT_CHECK
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DISABLE_RAIDS
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DO_IMMEDIATE_RESPAWN
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DO_PATROL_SPAWNING
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DO_TRADER_SPAWNING
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DO_VINES_SPREAD
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DO_WARDEN_SPAWNING
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DOBLOCKDROPS
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DOENTITYDROPS
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DOFIRETICK
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DOINSOMNIA
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DOMOBLOOT
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DOMOBSPAWNING
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_DROWNING_DAMAGE
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_ENDER_PEARLS_VANISH_ON_DEATH
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_FALL_DAMAGE
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_FIRE_DAMAGE
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_FORGIVE_DEAD_PLAYERS
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_FREEZE_DAMAGE
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_GLOBAL_SOUND_EVENTS
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_KEEPINVENTORY
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_LAVA_SOURCE_CONVERSION
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_LIMITED_CRAFTING
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_LOCATOR_BAR
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_LOGADMINCOMMANDS
static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_MAX_COMMAND_CHAIN_LENGTH
static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_MAX_COMMAND_FORK_COUNT
static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_MAX_ENTITY_CRAMMING
static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_MINECART_MAX_SPEED
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_MOB_EXPLOSION_DROP_DECAY
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_MOBGRIEFING
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_NATURAL_REGENERATION
static final GameRules.Key
<GameRules.IntegerValue> static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_PLAYERS_SLEEPING_PERCENTAGE
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_PROJECTILESCANBREAKBLOCKS
static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_RANDOMTICKING
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_REDUCEDDEBUGINFO
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_SENDCOMMANDFEEDBACK
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_SHOWDEATHMESSAGES
static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_SNOW_ACCUMULATION_HEIGHT
static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_SPAWN_CHUNK_RADIUS
static final GameRules.Key
<GameRules.IntegerValue> GameRules.RULE_SPAWN_RADIUS
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_SPECTATORSGENERATECHUNKS
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_TNT_EXPLODES
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_TNT_EXPLOSION_DROP_DECAY
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_UNIVERSAL_ANGER
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_WATER_SOURCE_CONVERSION
static final GameRules.Key
<GameRules.BooleanValue> GameRules.RULE_WEATHER_CYCLE
Fields in net.minecraft.world.level with type parameters of type GameRules.KeyModifier and TypeFieldDescriptionprivate static final Map
<GameRules.Key<?>, GameRules.Type<?>> GameRules.GAME_RULE_TYPES
private final Map
<GameRules.Key<?>, GameRules.Value<?>> GameRules.rules
Methods in net.minecraft.world.level that return GameRules.KeyModifier and TypeMethodDescriptionstatic <T extends GameRules.Value<T>>
GameRules.Key<T> GameRules.register
(String pName, GameRules.Category pCategory, GameRules.Type<T> pType) Methods in net.minecraft.world.level that return types with arguments of type GameRules.KeyModifier and TypeMethodDescriptionprivate static Stream
<Map.Entry<GameRules.Key<?>, GameRules.Type<?>>> GameRules.availableRules
(FeatureFlagSet pEnabledFeatures) static <T extends GameRules.Value<T>>
com.mojang.serialization.Codec<GameRules.Key<T>> Methods in net.minecraft.world.level with parameters of type GameRules.KeyModifier and TypeMethodDescriptionprivate <T extends GameRules.Value<T>>
voidGameRules.assignCap
(GameRules.Key<T> pKey, GameRules pRules, MinecraftServer pServer) void
GameRules.VisitorCaller.call
(GameRules.GameRuleTypeVisitor pVisitor, GameRules.Key<T> pKey, GameRules.Type<T> pType) void
GameRules.Type.callVisitor
(GameRules.GameRuleTypeVisitor pVisitor, GameRules.Key<T> pKey) private <T extends GameRules.Value<T>>
voidGameRules.callVisitorCap
(GameRules.GameRuleTypeVisitor pVisitor, GameRules.Key<?> pKey, GameRules.Type<?> pType) boolean
GameRules.getBoolean
(GameRules.Key<GameRules.BooleanValue> pKey) int
GameRules.getInt
(GameRules.Key<GameRules.IntegerValue> pKey) <T extends GameRules.Value<T>>
TGameRules.getRule
(GameRules.Key<T> pKey) static <T extends GameRules.Value<T>>
GameRules.Type<T> GameRules.getType
(GameRules.Key<T> pKey) default <T extends GameRules.Value<T>>
voidGameRules.GameRuleTypeVisitor.visit
(GameRules.Key<T> pKey, GameRules.Type<T> pType) default void
GameRules.GameRuleTypeVisitor.visitBoolean
(GameRules.Key<GameRules.BooleanValue> pKey, GameRules.Type<GameRules.BooleanValue> pType) default void
GameRules.GameRuleTypeVisitor.visitInteger
(GameRules.Key<GameRules.IntegerValue> pKey, GameRules.Type<GameRules.IntegerValue> pType) Constructor parameters in net.minecraft.world.level with type arguments of type GameRules.KeyModifierConstructorDescriptionprivate
GameRules
(Map<GameRules.Key<?>, GameRules.Value<?>> pRules, FeatureFlagSet pEnabledFeatures)