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> p_397315_, S p_397234_) 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 p_137758_, GameRules.Key<T> p_137759_) (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> p_361991_) -
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_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 p_46190_, GameRules.Category p_46191_, GameRules.Type<T> p_46192_) 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 p_360558_) 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> p_46173_, GameRules p_46174_, MinecraftServer p_46175_) void
GameRules.VisitorCaller.call
(GameRules.GameRuleTypeVisitor p_46375_, GameRules.Key<T> p_46376_, GameRules.Type<T> p_46377_) void
GameRules.Type.callVisitor
(GameRules.GameRuleTypeVisitor p_46354_, GameRules.Key<T> p_46355_) private <T extends GameRules.Value<T>>
voidGameRules.callVisitorCap
(GameRules.GameRuleTypeVisitor p_46167_, GameRules.Key<?> p_46168_, GameRules.Type<?> p_46169_) boolean
GameRules.getBoolean
(GameRules.Key<GameRules.BooleanValue> p_46208_) int
GameRules.getInt
(GameRules.Key<GameRules.IntegerValue> p_46216_) <T extends GameRules.Value<T>>
TGameRules.getRule
(GameRules.Key<T> p_46171_) static <T extends GameRules.Value<T>>
GameRules.Type<T> GameRules.getType
(GameRules.Key<T> p_397474_) default <T extends GameRules.Value<T>>
voidGameRules.GameRuleTypeVisitor.visit
(GameRules.Key<T> p_46278_, GameRules.Type<T> p_46279_) default void
GameRules.GameRuleTypeVisitor.visitBoolean
(GameRules.Key<GameRules.BooleanValue> p_46280_, GameRules.Type<GameRules.BooleanValue> p_46281_) default void
GameRules.GameRuleTypeVisitor.visitInteger
(GameRules.Key<GameRules.IntegerValue> p_46282_, GameRules.Type<GameRules.IntegerValue> p_46283_) Constructor parameters in net.minecraft.world.level with type arguments of type GameRules.KeyModifierConstructorDescriptionprivate
GameRules
(Map<GameRules.Key<?>, GameRules.Value<?>> p_46162_, FeatureFlagSet p_361030_)