net.minecraft.world.level

public class GameRules

dgf
net.minecraft.world.level.GameRules
net.minecraft.class_1928
net.minecraft.unmapped.C_xmldumst
net.minecraft.world.GameRules
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
f_bekpwqfx
DEFAULT_RANDOM_TICK_SPEED
DEFAULT_RANDOM_TICK_SPEED
f_151487_
static final org.slf4j.Logger
ac
LOGGER
field_19410
f_kzskrcnw
LOGGER
LOGGER
f_46128_
private static final Map<GameRules$Key<?>, GameRules$Type<?>>
ad
GAME_RULE_TYPES
field_9197
f_fskutrwp
RULE_TYPES
GAME_RULE_TYPES
f_46129_
public static final GameRules$Key<GameRules$BooleanValue>
b
RULE_DOFIRETICK
field_19387
f_ihinqnli
DO_FIRE_TICK
DO_FIRE_TICK
f_46131_
public static final GameRules$Key<GameRules$BooleanValue>
c
RULE_MOBGRIEFING
field_19388
f_nqnkyimm
DO_MOB_GRIEFING
DO_MOB_GRIEFING
f_46132_
public static final GameRules$Key<GameRules$BooleanValue>
d
RULE_KEEPINVENTORY
field_19389
f_hysgxzdu
KEEP_INVENTORY
KEEP_INVENTORY
f_46133_
public static final GameRules$Key<GameRules$BooleanValue>
e
RULE_DOMOBSPAWNING
field_19390
f_tputawyr
DO_MOB_SPAWNING
DO_MOB_SPAWNING
f_46134_
public static final GameRules$Key<GameRules$BooleanValue>
f
RULE_DOMOBLOOT
field_19391
f_vimssrzh
DO_MOB_LOOT
DO_MOB_LOOT
f_46135_
public static final GameRules$Key<GameRules$BooleanValue>
g
RULE_PROJECTILESCANBREAKBLOCKS
field_46796
f_rhcwrkmb
PROJECTILES_CAN_BREAK_BLOCKS
PROJECTILES_CAN_BREAK_BLOCKS
f_302210_
public static final GameRules$Key<GameRules$BooleanValue>
h
RULE_DOBLOCKDROPS
field_19392
f_huvodyag
DO_TILE_DROPS
DO_TILE_DROPS
f_46136_
public static final GameRules$Key<GameRules$BooleanValue>
i
RULE_DOENTITYDROPS
field_19393
f_jmfdlcxm
DO_ENTITY_DROPS
DO_ENTITY_DROPS
f_46137_
public static final GameRules$Key<GameRules$BooleanValue>
j
RULE_COMMANDBLOCKOUTPUT
field_19394
f_bjonrkyp
COMMAND_BLOCK_OUTPUT
COMMAND_BLOCK_OUTPUT
f_46138_
public static final GameRules$Key<GameRules$BooleanValue>
k
RULE_NATURAL_REGENERATION
field_19395
f_wvejngfp
NATURAL_REGENERATION
NATURAL_REGENERATION
f_46139_
public static final GameRules$Key<GameRules$BooleanValue>
l
RULE_DAYLIGHT
field_19396
f_ulkaqxnx
DO_DAYLIGHT_CYCLE
DO_DAYLIGHT_CYCLE
f_46140_
public static final GameRules$Key<GameRules$BooleanValue>
m
RULE_LOGADMINCOMMANDS
field_19397
f_ctprlhvi
LOG_ADMIN_COMMANDS
LOG_ADMIN_COMMANDS
f_46141_
public static final GameRules$Key<GameRules$BooleanValue>
n
RULE_SHOWDEATHMESSAGES
field_19398
f_ovpdtukz
SHOW_DEATH_MESSAGES
SHOW_DEATH_MESSAGES
f_46142_
public static final GameRules$Key<GameRules$IntegerValue>
o
RULE_RANDOMTICKING
field_19399
f_itxhzqol
RANDOM_TICK_SPEED
RANDOM_TICK_SPEED
f_46143_
public static final GameRules$Key<GameRules$BooleanValue>
p
RULE_SENDCOMMANDFEEDBACK
field_19400
f_jnvebouf
SEND_COMMAND_FEEDBACK
SEND_COMMAND_FEEDBACK
f_46144_
public static final GameRules$Key<GameRules$BooleanValue>
q
RULE_REDUCEDDEBUGINFO
field_19401
f_xfpasujp
REDUCED_DEBUG_INFO
REDUCED_DEBUG_INFO
f_46145_
public static final GameRules$Key<GameRules$BooleanValue>
r
RULE_SPECTATORSGENERATECHUNKS
field_19402
f_kwjvqvpl
SPECTATORS_GENERATE_CHUNKS
SPECTATORS_GENERATE_CHUNKS
f_46146_
public static final GameRules$Key<GameRules$IntegerValue>
s
RULE_SPAWN_RADIUS
field_19403
f_snezdope
SPAWN_RADIUS
SPAWN_RADIUS
f_46147_
public static final GameRules$Key<GameRules$BooleanValue>
t
RULE_DISABLE_PLAYER_MOVEMENT_CHECK
field_54909
f_trtfhzet
DISABLE_PLAYER_MOVEMENT_CHECK
DISABLE_PLAYER_MOVEMENT_CHECK
f_348281_
public static final GameRules$Key<GameRules$BooleanValue>
u
RULE_DISABLE_ELYTRA_MOVEMENT_CHECK
field_19404
f_oxxclhgt
DISABLE_ELYTRA_MOVEMENT_CHECK
DISABLE_ELYTRA_MOVEMENT_CHECK
f_46148_
public static final GameRules$Key<GameRules$IntegerValue>
v
RULE_MAX_ENTITY_CRAMMING
field_19405
f_zumpbxtd
MAX_ENTITY_CRAMMING
MAX_ENTITY_CRAMMING
f_46149_
public static final GameRules$Key<GameRules$BooleanValue>
w
RULE_WEATHER_CYCLE
field_19406
f_gmtiujwd
DO_WEATHER_CYCLE
DO_WEATHER_CYCLE
f_46150_
public static final GameRules$Key<GameRules$BooleanValue>
x
RULE_LIMITED_CRAFTING
field_19407
f_enlwvizg
DO_LIMITED_CRAFTING
DO_LIMITED_CRAFTING
f_46151_
public static final GameRules$Key<GameRules$IntegerValue>
y
RULE_MAX_COMMAND_CHAIN_LENGTH
field_19408
f_vvenpozn
MAX_COMMAND_CHAIN_LENGTH
MAX_COMMAND_CHAIN_LENGTH
f_46152_
public static final GameRules$Key<GameRules$IntegerValue>
z
RULE_MAX_COMMAND_FORK_COUNT
field_46658
f_kptbwaek
MAX_COMMAND_FORK_COUNT
MAX_COMMAND_FORK_COUNT
f_302764_
public static final GameRules$Key<GameRules$IntegerValue>
A
RULE_COMMAND_MODIFICATION_BLOCK_LIMIT
field_41766
f_ezxiljsj
COMMAND_MODIFICATION_BLOCK_LIMIT
COMMAND_MODIFICATION_BLOCK_LIMIT
f_263760_
public static final GameRules$Key<GameRules$BooleanValue>
B
RULE_ANNOUNCE_ADVANCEMENTS
field_19409
f_xhcxhtfb
ANNOUNCE_ADVANCEMENTS
ANNOUNCE_ADVANCEMENTS
f_46153_
public static final GameRules$Key<GameRules$BooleanValue>
C
RULE_DISABLE_RAIDS
field_19422
f_qacbmgyi
DISABLE_RAIDS
DISABLE_RAIDS
f_46154_
public static final GameRules$Key<GameRules$BooleanValue>
D
RULE_DOINSOMNIA
field_20637
f_ddlhpkfi
DO_INSOMNIA
DO_INSOMNIA
f_46155_
public static final GameRules$Key<GameRules$BooleanValue>
E
RULE_DO_IMMEDIATE_RESPAWN
field_20638
f_djarkqql
DO_IMMEDIATE_RESPAWN
DO_IMMEDIATE_RESPAWN
f_46156_
public static final GameRules$Key<GameRules$IntegerValue>
F
RULE_PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
field_46794
f_mregssfy
PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
f_302481_
public static final GameRules$Key<GameRules$IntegerValue>
G
RULE_PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
field_46795
f_deqowufq
PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
f_303073_
public static final GameRules$Key<GameRules$BooleanValue>
H
RULE_DROWNING_DAMAGE
field_20634
f_ifwgdzjz
DROWNING_DAMAGE
DROWNING_DAMAGE
f_46121_
public static final GameRules$Key<GameRules$BooleanValue>
I
RULE_FALL_DAMAGE
field_20635
f_uqgkyhqg
FALL_DAMAGE
FALL_DAMAGE
f_46122_
public static final GameRules$Key<GameRules$BooleanValue>
J
RULE_FIRE_DAMAGE
field_20636
f_poqilblq
FIRE_DAMAGE
FIRE_DAMAGE
f_46123_
public static final GameRules$Key<GameRules$BooleanValue>
K
RULE_FREEZE_DAMAGE
field_28044
f_tnihyttb
FREEZE_DAMAGE
FREEZE_DAMAGE
f_151485_
public static final GameRules$Key<GameRules$BooleanValue>
L
RULE_DO_PATROL_SPAWNING
field_21831
f_npbkaozn
DO_PATROL_SPAWNING
DO_PATROL_SPAWNING
f_46124_
public static final GameRules$Key<GameRules$BooleanValue>
M
RULE_DO_TRADER_SPAWNING
field_21832
f_tamllbds
DO_TRADER_SPAWNING
DO_TRADER_SPAWNING
f_46125_
public static final GameRules$Key<GameRules$BooleanValue>
N
RULE_DO_WARDEN_SPAWNING
field_38975
f_cgocceiq
DO_WARDEN_SPAWNING
DO_WARDEN_SPAWNING
f_220347_
public static final GameRules$Key<GameRules$BooleanValue>
O
RULE_FORGIVE_DEAD_PLAYERS
field_25401
f_knmgnowy
FORGIVE_DEAD_PLAYERS
FORGIVE_DEAD_PLAYERS
f_46126_
public static final GameRules$Key<GameRules$BooleanValue>
P
RULE_UNIVERSAL_ANGER
field_25402
f_fhvryuhr
UNIVERSAL_ANGER
UNIVERSAL_ANGER
f_46127_
public static final GameRules$Key<GameRules$IntegerValue>
Q
RULE_PLAYERS_SLEEPING_PERCENTAGE
field_28357
f_uwzhnovj
PLAYERS_SLEEPING_PERCENTAGE
PLAYERS_SLEEPING_PERCENTAGE
f_151486_
public static final GameRules$Key<GameRules$BooleanValue>
R
RULE_BLOCK_EXPLOSION_DROP_DECAY
field_40880
f_iteluiic
BLOCK_EXPLOSION_DROP_DECAY
BLOCK_EXPLOSION_DROP_DECAY
f_254629_
public static final GameRules$Key<GameRules$BooleanValue>
S
RULE_MOB_EXPLOSION_DROP_DECAY
field_40881
f_kjbyjrtx
MOB_EXPLOSION_DROP_DECAY
MOB_EXPLOSION_DROP_DECAY
f_254692_
public static final GameRules$Key<GameRules$BooleanValue>
T
RULE_TNT_EXPLOSION_DROP_DECAY
field_40882
f_rylydcdc
TNT_EXPLOSION_DROP_DECAY
TNT_EXPLOSION_DROP_DECAY
f_254705_
public static final GameRules$Key<GameRules$IntegerValue>
U
RULE_SNOW_ACCUMULATION_HEIGHT
field_40883
f_cpoobbqt
SNOW_ACCUMULATION_HEIGHT
SNOW_ACCUMULATION_HEIGHT
f_254637_
public static final GameRules$Key<GameRules$BooleanValue>
V
RULE_WATER_SOURCE_CONVERSION
field_40884
f_qerjgogz
WATER_SOURCE_CONVERSION
WATER_SOURCE_CONVERSION
f_254725_
public static final GameRules$Key<GameRules$BooleanValue>
W
RULE_LAVA_SOURCE_CONVERSION
field_40885
f_hlmqygvm
LAVA_SOURCE_CONVERSION
LAVA_SOURCE_CONVERSION
f_254672_
public static final GameRules$Key<GameRules$BooleanValue>
X
RULE_GLOBAL_SOUND_EVENTS
field_40886
f_zwlbxxnu
GLOBAL_SOUND_EVENTS
GLOBAL_SOUND_EVENTS
f_254630_
public static final GameRules$Key<GameRules$BooleanValue>
Y
RULE_DO_VINES_SPREAD
field_42474
f_cinyfujz
DO_VINES_SPREAD
DO_VINES_SPREAD
f_268705_
public static final GameRules$Key<GameRules$BooleanValue>
Z
RULE_ENDER_PEARLS_VANISH_ON_DEATH
field_46176
f_dumcogor
ENDER_PEARLS_VANISH_ON_DEATH
ENDER_PEARLS_VANISH_ON_DEATH
f_291323_
public static final GameRules$Key<GameRules$IntegerValue>
aa
RULE_MINECART_MAX_SPEED
field_52614
f_likorukc
MINECART_MAX_SPEED
MINECART_MAX_SPEED
f_349273_
public static final GameRules$Key<GameRules$IntegerValue>
ab
RULE_SPAWN_CHUNK_RADIUS
field_48374
f_yewtvtkm
SPAWN_CHUNK_RADIUS
SPAWN_CHUNK_RADIUS
f_314920_
private final Map<GameRules$Key<?>, GameRules$Value<?>>
ae
rules
field_9196
f_aqbcwkwn
rules
gameRules
f_46130_
private final FeatureFlagSet
af
enabledFeatures
field_52615
f_ngaduejy
enabledFeatures
f_348814_

Constructor summary

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

Method summary

Modifier and TypeMethod
private static <T extends GameRules$Value<T>> GameRules$Key<T>
a(String arg0, dgf$b arg1, dgf$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)
m_zuudbppt(String arg0, C_xmldumst$C_vkqoqsmj arg1, C_xmldumst$C_mymgluou<T> arg2)
register(String name, GameRules$Category category, GameRules$Type<T> type)
register(String name, GameRules$Category category, GameRules$Type<T> type)
m_46189_(String p_46190_, C_1583_$C_1586_ p_46191_, C_1583_$C_1590_<T> p_46192_)
private static Stream<Map$Entry<GameRules$Key<?>, GameRules$Type<?>>>
b(cru arg0)
availableRules(FeatureFlagSet arg0)
method_61725(class_7699 arg0)
m_blfpfteb(C_czxxrbcp arg0)
streamAllRules(FeatureSet enabledFeatures)
m_351922_(C_243488_ p_367533_)
public <T extends GameRules$Value<T>> T
a(dgf$e<T> arg0)
getRule(GameRules$Key<T> arg0)
method_20746(class_1928$class_4313<T> arg0)
m_mijxrbwk(C_xmldumst$C_iuaedxxw<T> arg0)
get(GameRules$Key<T> key)
get(GameRules$Key<T> key)
m_46170_(C_1583_$C_1589_<T> arg0)
public CompoundTag
a()
createTag()
method_8358()
m_khbebsio()
toNbt()
toNbt()
m_46163_()
private void
a(com.mojang.serialization.DynamicLike<?> arg0)
loadFromTag(com.mojang.serialization.DynamicLike<?> arg0)
method_8357(com.mojang.serialization.DynamicLike<?> arg0)
m_magbttmy(com.mojang.serialization.DynamicLike<?> arg0)
load(com.mojang.serialization.DynamicLike<?> values)
load(com.mojang.serialization.DynamicLike<?> gameRules)
m_46183_(com.mojang.serialization.DynamicLike<?> arg0)
public GameRules
a(cru arg0)
copy(FeatureFlagSet arg0)
method_27325(class_7699 arg0)
m_kkvdhcio(C_czxxrbcp arg0)
copy(FeatureSet enabledFeatures)
copy(FeatureFlagBitSet arg0)
m_46202_(C_243488_ arg0)
public void
a(dgf$c arg0)
visitGameRuleTypes(GameRules$GameRuleTypeVisitor arg0)
method_20744(class_1928$class_4311 arg0)
m_gdklogjj(C_xmldumst$C_avotqrag arg0)
accept(GameRules$Visitor visitor)
accept(GameRules$Visitor arg0)
m_46164_(C_1583_$C_1587_ arg0)
private <T extends GameRules$Value<T>> void
a(dgf$c arg0, dgf$e<?> arg1, dgf$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)
m_wqjrkanc(C_xmldumst$C_avotqrag arg0, C_xmldumst$C_iuaedxxw<?> arg1, C_xmldumst$C_mymgluou<?> arg2)
accept(GameRules$Visitor visitor, GameRules$Key<?> key, GameRules$Type<?> type)
accept(GameRules$Visitor visitor, GameRules$Key<?> key, GameRules$Type<?> type)
m_46166_(C_1583_$C_1587_ p_46168_, C_1583_$C_1589_<?> p_46169_, C_1583_$C_1590_<?> arg2)
public void
a(dgf arg0, MinecraftServer arg1)
assignFrom(GameRules arg0, MinecraftServer arg1)
method_27322(class_1928 arg0, MinecraftServer arg1)
m_annnbzfc(C_xmldumst arg0, MinecraftServer arg1)
setAllValues(GameRules rules, MinecraftServer server)
setAllValues(GameRules other, MinecraftServer server)
m_46176_(C_1583_ p_46178_, MinecraftServer arg1)
private <T extends GameRules$Value<T>> void
a(dgf$e<T> arg0, dgf 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)
m_srlsshkl(C_xmldumst$C_iuaedxxw<T> arg0, C_xmldumst arg1, MinecraftServer arg2)
setValue(GameRules$Key<T> key, GameRules rules, MinecraftServer server)
setValue(GameRules$Key<T> key, GameRules other, MinecraftServer server)
m_46172_(C_1583_$C_1589_<T> p_46174_, C_1583_ p_46175_, MinecraftServer arg2)
public boolean
b(dgf$e<dgf$a> arg0)
getBoolean(GameRules$Key<GameRules$BooleanValue> arg0)
method_8355(class_1928$class_4313<class_1928$class_4310> arg0)
m_vkgvfrzn(C_xmldumst$C_iuaedxxw<C_xmldumst$C_juzzykai> arg0)
getBoolean(GameRules$Key<GameRules$BooleanRule> rule)
getBooleanValue(GameRules$Key<GameRules$BooleanGameRule> gameRule)
m_46207_(C_1583_$C_1589_<C_1583_$C_1585_> arg0)
public int
c(dgf$e<dgf$d> arg0)
getInt(GameRules$Key<GameRules$IntegerValue> arg0)
method_8356(class_1928$class_4313<class_1928$class_4312> arg0)
m_dpsrpyxn(C_xmldumst$C_iuaedxxw<C_xmldumst$C_tdajhqee> arg0)
getInt(GameRules$Key<GameRules$IntRule> rule)
getIntValue(GameRules$Key<GameRules$IntGameRule> gameRule)
m_46215_(C_1583_$C_1589_<C_1583_$C_1588_> arg0)