Package net.minecraft.world
Class GameRules
java.lang.Object
net.minecraft.world.GameRules
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static class
(package private) static interface
GameRules.IRule<T extends GameRules.RuleValue<T>>
static interface
static final class
GameRules.RuleKey<T extends GameRules.RuleValue<T>>
static class
GameRules.RuleType<T extends GameRules.RuleValue<T>>
static class
GameRules.RuleValue<T extends GameRules.RuleValue<T>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<GameRules.RuleKey<?>,
GameRules.RuleType<?>> private static final org.apache.logging.log4j.Logger
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.IntegerValue>
static final GameRules.RuleKey<GameRules.IntegerValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.IntegerValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.IntegerValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
static final GameRules.RuleKey<GameRules.BooleanValue>
private final Map<GameRules.RuleKey<?>,
GameRules.RuleValue<?>> -
Constructor Summary
ModifierConstructorDescriptionGameRules
(com.mojang.serialization.DynamicLike<?> p_i231611_1_) private
GameRules
(Map<GameRules.RuleKey<?>, GameRules.RuleValue<?>> p_i231612_1_) -
Method Summary
Modifier and TypeMethodDescriptionprivate <T extends GameRules.RuleValue<T>>
voidassignCap
(GameRules.RuleKey<T> p_234898_1_, GameRules p_234898_2_, MinecraftServer p_234898_3_) void
assignFrom
(GameRules p_234899_1_, MinecraftServer p_234899_2_) private static <T extends GameRules.RuleValue<T>>
voidcallVisitorCap
(GameRules.IRuleEntryVisitor p_234897_0_, GameRules.RuleKey<?> p_234897_1_, GameRules.RuleType<?> p_234897_2_) copy()
boolean
getBoolean
(GameRules.RuleKey<GameRules.BooleanValue> p_223586_1_) int
getInt
(GameRules.RuleKey<GameRules.IntegerValue> p_223592_1_) <T extends GameRules.RuleValue<T>>
TgetRule
(GameRules.RuleKey<T> p_223585_1_) private void
loadFromTag
(com.mojang.serialization.DynamicLike<?> p_234901_1_) static <T extends GameRules.RuleValue<T>>
GameRules.RuleKey<T>register
(String p_234903_0_, GameRules.Category p_234903_1_, GameRules.RuleType<T> p_234903_2_) static void
visitGameRuleTypes
(GameRules.IRuleEntryVisitor p_223590_0_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
GAME_RULE_TYPES
-
RULE_DOFIRETICK
-
RULE_MOBGRIEFING
-
RULE_KEEPINVENTORY
-
RULE_DOMOBSPAWNING
-
RULE_DOMOBLOOT
-
RULE_DOBLOCKDROPS
-
RULE_DOENTITYDROPS
-
RULE_COMMANDBLOCKOUTPUT
-
RULE_NATURAL_REGENERATION
-
RULE_DAYLIGHT
-
RULE_LOGADMINCOMMANDS
-
RULE_SHOWDEATHMESSAGES
-
RULE_RANDOMTICKING
-
RULE_SENDCOMMANDFEEDBACK
-
RULE_REDUCEDDEBUGINFO
-
RULE_SPECTATORSGENERATECHUNKS
-
RULE_SPAWN_RADIUS
-
RULE_DISABLE_ELYTRA_MOVEMENT_CHECK
-
RULE_MAX_ENTITY_CRAMMING
-
RULE_WEATHER_CYCLE
-
RULE_LIMITED_CRAFTING
-
RULE_MAX_COMMAND_CHAIN_LENGTH
-
RULE_ANNOUNCE_ADVANCEMENTS
-
RULE_DISABLE_RAIDS
-
RULE_DOINSOMNIA
-
RULE_DO_IMMEDIATE_RESPAWN
-
RULE_DROWNING_DAMAGE
-
RULE_FALL_DAMAGE
-
RULE_FIRE_DAMAGE
-
RULE_DO_PATROL_SPAWNING
-
RULE_DO_TRADER_SPAWNING
-
RULE_FORGIVE_DEAD_PLAYERS
-
RULE_UNIVERSAL_ANGER
-
rules
-
-
Constructor Details
-
GameRules
public GameRules(com.mojang.serialization.DynamicLike<?> p_i231611_1_) -
GameRules
public GameRules() -
GameRules
-
-
Method Details
-
register
public static <T extends GameRules.RuleValue<T>> GameRules.RuleKey<T> register(String p_234903_0_, GameRules.Category p_234903_1_, GameRules.RuleType<T> p_234903_2_) -
getRule
-
createTag
-
loadFromTag
private void loadFromTag(com.mojang.serialization.DynamicLike<?> p_234901_1_) -
copy
-
visitGameRuleTypes
-
callVisitorCap
private static <T extends GameRules.RuleValue<T>> void callVisitorCap(GameRules.IRuleEntryVisitor p_234897_0_, GameRules.RuleKey<?> p_234897_1_, GameRules.RuleType<?> p_234897_2_) -
assignFrom
-
assignCap
private <T extends GameRules.RuleValue<T>> void assignCap(GameRules.RuleKey<T> p_234898_1_, GameRules p_234898_2_, @Nullable MinecraftServer p_234898_3_) -
getBoolean
-
getInt
-