net.minecraft.world.level

public class GameRules

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

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
public static <T extends GameRules$Value<T>> GameRules$Type<T>
a(diw$e<T> arg0)
getType(GameRules$Key<T> arg0)
method_66702(class_1928$class_4313<T> arg0)
m_gstjdzju(C_xmldumst$C_iuaedxxw<T> arg0)
getRuleType(GameRules$Key<T> key)
public static <T extends GameRules$Value<T>> com.mojang.serialization.Codec<GameRules$Key<T>>
a(Class<T> arg0)
keyCodec(Class<T> arg0)
method_66703(Class<T> arg0)
m_czylcdtl(Class<T> arg0)
createKeyCodec(Class<T> ruleClass)
private static <T extends GameRules$Value<T>> GameRules$Key<T>
a(String arg0, diw$b arg1, diw$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)
private static Stream<Map$Entry<GameRules$Key<?>, GameRules$Type<?>>>
b(cum arg0)
availableRules(FeatureFlagSet arg0)
method_61725(class_7699 arg0)
m_blfpfteb(C_czxxrbcp arg0)
streamAllRules(FeatureSet enabledFeatures)
public <T extends GameRules$Value<T>> T
b(diw$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)
public CompoundTag
a()
createTag()
method_8358()
m_khbebsio()
toNbt()
toNbt()
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)
public GameRules
a(cum arg0)
copy(FeatureFlagSet arg0)
method_27325(class_7699 arg0)
m_kkvdhcio(C_czxxrbcp arg0)
copy(FeatureSet enabledFeatures)
copy(FeatureFlagBitSet arg0)
public void
a(diw$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)
private <T extends GameRules$Value<T>> void
a(diw$c arg0, diw$e<?> arg1, diw$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)
public void
a(diw 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)
private <T extends GameRules$Value<T>> void
a(diw$e<T> arg0, diw 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)
public boolean
c(diw$e<diw$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)
public int
d(diw$e<diw$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)