net.minecraft.world.level

public class GameRules

cfw
net.minecraft.world.level.GameRules
net.minecraft.class_1928
net.minecraft.world.GameRules
net.minecraft.src.C_1583_
net.minecraft.world.level.GameRules

Field summary

Modifier and TypeField
public static final int
a
DEFAULT_RANDOM_TICK_SPEED
field_30963
DEFAULT_RANDOM_TICK_SPEED
f_151487_
static final org.slf4j.Logger
L
LOGGER
field_19410
LOGGER
f_46128_
private static final Map<GameRules$Key<?>, GameRules$Type<?>>
M
GAME_RULE_TYPES
field_9197
RULE_TYPES
f_46129_
public static final GameRules$Key<GameRules$BooleanValue>
b
RULE_DOFIRETICK
field_19387
DO_FIRE_TICK
f_46131_
public static final GameRules$Key<GameRules$BooleanValue>
c
RULE_MOBGRIEFING
field_19388
DO_MOB_GRIEFING
f_46132_
public static final GameRules$Key<GameRules$BooleanValue>
d
RULE_KEEPINVENTORY
field_19389
KEEP_INVENTORY
f_46133_
public static final GameRules$Key<GameRules$BooleanValue>
e
RULE_DOMOBSPAWNING
field_19390
DO_MOB_SPAWNING
f_46134_
public static final GameRules$Key<GameRules$BooleanValue>
f
RULE_DOMOBLOOT
field_19391
DO_MOB_LOOT
f_46135_
public static final GameRules$Key<GameRules$BooleanValue>
g
RULE_DOBLOCKDROPS
field_19392
DO_TILE_DROPS
f_46136_
public static final GameRules$Key<GameRules$BooleanValue>
h
RULE_DOENTITYDROPS
field_19393
DO_ENTITY_DROPS
f_46137_
public static final GameRules$Key<GameRules$BooleanValue>
i
RULE_COMMANDBLOCKOUTPUT
field_19394
COMMAND_BLOCK_OUTPUT
f_46138_
public static final GameRules$Key<GameRules$BooleanValue>
j
RULE_NATURAL_REGENERATION
field_19395
NATURAL_REGENERATION
f_46139_
public static final GameRules$Key<GameRules$BooleanValue>
k
RULE_DAYLIGHT
field_19396
DO_DAYLIGHT_CYCLE
f_46140_
public static final GameRules$Key<GameRules$BooleanValue>
l
RULE_LOGADMINCOMMANDS
field_19397
LOG_ADMIN_COMMANDS
f_46141_
public static final GameRules$Key<GameRules$BooleanValue>
m
RULE_SHOWDEATHMESSAGES
field_19398
SHOW_DEATH_MESSAGES
f_46142_
public static final GameRules$Key<GameRules$IntegerValue>
n
RULE_RANDOMTICKING
field_19399
RANDOM_TICK_SPEED
f_46143_
public static final GameRules$Key<GameRules$BooleanValue>
o
RULE_SENDCOMMANDFEEDBACK
field_19400
SEND_COMMAND_FEEDBACK
f_46144_
public static final GameRules$Key<GameRules$BooleanValue>
p
RULE_REDUCEDDEBUGINFO
field_19401
REDUCED_DEBUG_INFO
f_46145_
public static final GameRules$Key<GameRules$BooleanValue>
q
RULE_SPECTATORSGENERATECHUNKS
field_19402
SPECTATORS_GENERATE_CHUNKS
f_46146_
public static final GameRules$Key<GameRules$IntegerValue>
r
RULE_SPAWN_RADIUS
field_19403
SPAWN_RADIUS
f_46147_
public static final GameRules$Key<GameRules$BooleanValue>
s
RULE_DISABLE_ELYTRA_MOVEMENT_CHECK
field_19404
DISABLE_ELYTRA_MOVEMENT_CHECK
f_46148_
public static final GameRules$Key<GameRules$IntegerValue>
t
RULE_MAX_ENTITY_CRAMMING
field_19405
MAX_ENTITY_CRAMMING
f_46149_
public static final GameRules$Key<GameRules$BooleanValue>
u
RULE_WEATHER_CYCLE
field_19406
DO_WEATHER_CYCLE
f_46150_
public static final GameRules$Key<GameRules$BooleanValue>
v
RULE_LIMITED_CRAFTING
field_19407
DO_LIMITED_CRAFTING
f_46151_
public static final GameRules$Key<GameRules$IntegerValue>
w
RULE_MAX_COMMAND_CHAIN_LENGTH
field_19408
MAX_COMMAND_CHAIN_LENGTH
f_46152_
public static final GameRules$Key<GameRules$BooleanValue>
x
RULE_ANNOUNCE_ADVANCEMENTS
field_19409
ANNOUNCE_ADVANCEMENTS
f_46153_
public static final GameRules$Key<GameRules$BooleanValue>
y
RULE_DISABLE_RAIDS
field_19422
DISABLE_RAIDS
f_46154_
public static final GameRules$Key<GameRules$BooleanValue>
z
RULE_DOINSOMNIA
field_20637
DO_INSOMNIA
f_46155_
public static final GameRules$Key<GameRules$BooleanValue>
A
RULE_DO_IMMEDIATE_RESPAWN
field_20638
DO_IMMEDIATE_RESPAWN
f_46156_
public static final GameRules$Key<GameRules$BooleanValue>
B
RULE_DROWNING_DAMAGE
field_20634
DROWNING_DAMAGE
f_46121_
public static final GameRules$Key<GameRules$BooleanValue>
C
RULE_FALL_DAMAGE
field_20635
FALL_DAMAGE
f_46122_
public static final GameRules$Key<GameRules$BooleanValue>
D
RULE_FIRE_DAMAGE
field_20636
FIRE_DAMAGE
f_46123_
public static final GameRules$Key<GameRules$BooleanValue>
E
RULE_FREEZE_DAMAGE
field_28044
FREEZE_DAMAGE
f_151485_
public static final GameRules$Key<GameRules$BooleanValue>
F
RULE_DO_PATROL_SPAWNING
field_21831
DO_PATROL_SPAWNING
f_46124_
public static final GameRules$Key<GameRules$BooleanValue>
G
RULE_DO_TRADER_SPAWNING
field_21832
DO_TRADER_SPAWNING
f_46125_
public static final GameRules$Key<GameRules$BooleanValue>
H
RULE_DO_WARDEN_SPAWNING
field_38975
DO_WARDEN_SPAWNING
f_220347_
public static final GameRules$Key<GameRules$BooleanValue>
I
RULE_FORGIVE_DEAD_PLAYERS
field_25401
FORGIVE_DEAD_PLAYERS
f_46126_
public static final GameRules$Key<GameRules$BooleanValue>
J
RULE_UNIVERSAL_ANGER
field_25402
UNIVERSAL_ANGER
f_46127_
public static final GameRules$Key<GameRules$IntegerValue>
K
RULE_PLAYERS_SLEEPING_PERCENTAGE
field_28357
PLAYERS_SLEEPING_PERCENTAGE
f_151486_
private final Map<GameRules$Key<?>, GameRules$Value<?>>
N
rules
field_9196
rules
f_46130_

Constructor summary

ModifierConstructor
public (com.mojang.serialization.DynamicLike<?> arg0)
public ()
private (Map<GameRules$Key<?>, GameRules$Value<?>> rules)

Method summary

Modifier and TypeMethod
private static <T extends GameRules$Value<T>> GameRules$Key<T>
a(String arg0, cfw$b arg1, cfw$f<T> arg2)
register(String arg0, GameRules$Category arg1, GameRules$Type<T> arg2)
method_8359(String arg0, class_1928$class_5198 arg1, class_1928$class_4314<T> arg2)
register(String name, GameRules$Category category, GameRules$Type<T> type)
m_46189_(String p_46190_, C_1586_ p_46191_, C_1590_<T> p_46192_)
public <T extends GameRules$Value<T>> T
a(cfw$e<T> arg0)
getRule(GameRules$Key<T> arg0)
method_20746(class_1928$class_4313<T> arg0)
get(GameRules$Key<T> key)
m_46170_(C_1589_<T> arg0)
public CompoundTag
a()
createTag()
method_8358()
toNbt()
m_46163_()
private void
a(com.mojang.serialization.DynamicLike<?> arg0)
loadFromTag(com.mojang.serialization.DynamicLike<?> arg0)
method_8357(com.mojang.serialization.DynamicLike<?> arg0)
load(com.mojang.serialization.DynamicLike<?> arg0)
m_46183_(com.mojang.serialization.DynamicLike<?> arg0)
public GameRules
b()
copy()
method_27325()
copy()
m_46202_()
public static void
a(cfw$c arg0)
visitGameRuleTypes(GameRules$GameRuleTypeVisitor arg0)
method_20744(class_1928$class_4311 arg0)
accept(GameRules$Visitor visitor)
m_46164_(C_1587_ p_46165_)
private static <T extends GameRules$Value<T>> void
a(cfw$c arg0, cfw$e<?> arg1, cfw$f<?> arg2)
callVisitorCap(GameRules$GameRuleTypeVisitor arg0, GameRules$Key<?> arg1, GameRules$Type<?> arg2)
method_20745(class_1928$class_4311 arg0, class_1928$class_4313<?> arg1, class_1928$class_4314<?> arg2)
accept(GameRules$Visitor consumer, GameRules$Key<?> key, GameRules$Type<?> type)
m_46166_(C_1587_ p_46167_, C_1589_<?> p_46168_, C_1590_<?> p_46169_)
public void
a(cfw arg0, MinecraftServer arg1)
assignFrom(GameRules arg0, MinecraftServer arg1)
method_27322(class_1928 arg0, MinecraftServer arg1)
setAllValues(GameRules rules, MinecraftServer server)
m_46176_(C_1583_ p_46178_, C_4977_ arg1)
private <T extends GameRules$Value<T>> void
a(cfw$e<T> arg0, cfw arg1, MinecraftServer arg2)
assignCap(GameRules$Key<T> arg0, GameRules arg1, MinecraftServer arg2)
method_27321(class_1928$class_4313<T> arg0, class_1928 arg1, MinecraftServer arg2)
setValue(GameRules$Key<T> key, GameRules rules, MinecraftServer server)
m_46172_(C_1589_<T> p_46174_, C_1583_ p_46175_, C_4977_ arg2)
public boolean
b(cfw$e<cfw$a> arg0)
getBoolean(GameRules$Key<GameRules$BooleanValue> arg0)
method_8355(class_1928$class_4313<class_1928$class_4310> arg0)
getBoolean(GameRules$Key<GameRules$BooleanRule> rule)
m_46207_(C_1589_<C_1585_> arg0)
public int
c(cfw$e<cfw$d> arg0)
getInt(GameRules$Key<GameRules$IntegerValue> arg0)
method_8356(class_1928$class_4313<class_1928$class_4312> arg0)
getInt(GameRules$Key<GameRules$IntRule> rule)
m_46215_(C_1589_<C_1588_> arg0)