Uses of Class
net.minecraft.world.level.GameRules.Key
-
Uses of GameRules.Key in net.minecraft.server.commands
Modifier 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.world.level
Modifier and TypeFieldDescriptionstatic 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.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_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_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_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_ENTITY_CRAMMING
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>
GameRules.RULE_PLAYERS_SLEEPING_PERCENTAGE
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_RADIUS
static final GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_SPECTATORSGENERATECHUNKS
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
Modifier and TypeFieldDescriptionprivate static final Map<GameRules.Key<?>,
GameRules.Type<?>> GameRules.GAME_RULE_TYPES
private final Map<GameRules.Key<?>,
GameRules.Value<?>> GameRules.rules
Modifier and TypeMethodDescriptionstatic <T extends GameRules.Value<T>>
GameRules.Key<T>GameRules.register
(String p_46190_, GameRules.Category p_46191_, GameRules.Type<T> p_46192_) Modifier 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 static <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_) private Explosion.BlockInteraction
Level.getDestroyType
(GameRules.Key<GameRules.BooleanValue> p_256250_) int
GameRules.getInt
(GameRules.Key<GameRules.IntegerValue> p_46216_) <T extends GameRules.Value<T>>
TGameRules.getRule
(GameRules.Key<T> p_46171_) 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_) ModifierConstructorDescriptionprivate
GameRules
(Map<GameRules.Key<?>, GameRules.Value<?>> p_46162_)