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 GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_ANNOUNCE_ADVANCEMENTS
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_COMMANDBLOCKOUTPUT
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DAYLIGHT
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DISABLE_ELYTRA_MOVEMENT_CHECK
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DISABLE_RAIDS
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DO_IMMEDIATE_RESPAWN
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DO_PATROL_SPAWNING
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DO_TRADER_SPAWNING
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DOBLOCKDROPS
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DOENTITYDROPS
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DOFIRETICK
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DOINSOMNIA
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DOMOBLOOT
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DOMOBSPAWNING
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_DROWNING_DAMAGE
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_FALL_DAMAGE
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_FIRE_DAMAGE
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_FORGIVE_DEAD_PLAYERS
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_FREEZE_DAMAGE
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_KEEPINVENTORY
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_LIMITED_CRAFTING
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_LOGADMINCOMMANDS
static GameRules.Key<GameRules.IntegerValue>
GameRules.RULE_MAX_COMMAND_CHAIN_LENGTH
static GameRules.Key<GameRules.IntegerValue>
GameRules.RULE_MAX_ENTITY_CRAMMING
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_MOBGRIEFING
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_NATURAL_REGENERATION
static GameRules.Key<GameRules.IntegerValue>
GameRules.RULE_PLAYERS_SLEEPING_PERCENTAGE
static GameRules.Key<GameRules.IntegerValue>
GameRules.RULE_RANDOMTICKING
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_REDUCEDDEBUGINFO
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_SENDCOMMANDFEEDBACK
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_SHOWDEATHMESSAGES
static GameRules.Key<GameRules.IntegerValue>
GameRules.RULE_SPAWN_RADIUS
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_SPECTATORSGENERATECHUNKS
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_UNIVERSAL_ANGER
static GameRules.Key<GameRules.BooleanValue>
GameRules.RULE_WEATHER_CYCLE
Modifier and TypeFieldDescriptionprivate static Map<GameRules.Key<?>,GameRules.Type<?>>
GameRules.GAME_RULE_TYPES
private 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_)
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_)