net.minecraft.world.level

public class GameRules

bzz
net.minecraft.world.level.GameRules
net.minecraft.class_1928
net.minecraft.unmapped.C_xmldumst
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
f_151487_
static final org.apache.logging.log4j.Logger
K
LOGGER
field_19410
f_kzskrcnw
LOGGER
f_46128_
private static final Map<GameRules$Key<?>, GameRules$Type<?>>
L
GAME_RULE_TYPES
field_9197
f_fskutrwp
RULE_TYPES
f_46129_
public static final GameRules$Key<GameRules$BooleanValue>
b
RULE_DOFIRETICK
field_19387
f_ihinqnli
DO_FIRE_TICK
f_46131_
public static final GameRules$Key<GameRules$BooleanValue>
c
RULE_MOBGRIEFING
field_19388
f_nqnkyimm
DO_MOB_GRIEFING
f_46132_
public static final GameRules$Key<GameRules$BooleanValue>
d
RULE_KEEPINVENTORY
field_19389
f_hysgxzdu
KEEP_INVENTORY
f_46133_
public static final GameRules$Key<GameRules$BooleanValue>
e
RULE_DOMOBSPAWNING
field_19390
f_tputawyr
DO_MOB_SPAWNING
f_46134_
public static final GameRules$Key<GameRules$BooleanValue>
f
RULE_DOMOBLOOT
field_19391
f_vimssrzh
DO_MOB_LOOT
f_46135_
public static final GameRules$Key<GameRules$BooleanValue>
g
RULE_DOBLOCKDROPS
field_19392
f_huvodyag
DO_TILE_DROPS
f_46136_
public static final GameRules$Key<GameRules$BooleanValue>
h
RULE_DOENTITYDROPS
field_19393
f_jmfdlcxm
DO_ENTITY_DROPS
f_46137_
public static final GameRules$Key<GameRules$BooleanValue>
i
RULE_COMMANDBLOCKOUTPUT
field_19394
f_bjonrkyp
COMMAND_BLOCK_OUTPUT
f_46138_
public static final GameRules$Key<GameRules$BooleanValue>
j
RULE_NATURAL_REGENERATION
field_19395
f_wvejngfp
NATURAL_REGENERATION
f_46139_
public static final GameRules$Key<GameRules$BooleanValue>
k
RULE_DAYLIGHT
field_19396
f_ulkaqxnx
DO_DAYLIGHT_CYCLE
f_46140_
public static final GameRules$Key<GameRules$BooleanValue>
l
RULE_LOGADMINCOMMANDS
field_19397
f_ctprlhvi
LOG_ADMIN_COMMANDS
f_46141_
public static final GameRules$Key<GameRules$BooleanValue>
m
RULE_SHOWDEATHMESSAGES
field_19398
f_ovpdtukz
SHOW_DEATH_MESSAGES
f_46142_
public static final GameRules$Key<GameRules$IntegerValue>
n
RULE_RANDOMTICKING
field_19399
f_itxhzqol
RANDOM_TICK_SPEED
f_46143_
public static final GameRules$Key<GameRules$BooleanValue>
o
RULE_SENDCOMMANDFEEDBACK
field_19400
f_jnvebouf
SEND_COMMAND_FEEDBACK
f_46144_
public static final GameRules$Key<GameRules$BooleanValue>
p
RULE_REDUCEDDEBUGINFO
field_19401
f_xfpasujp
REDUCED_DEBUG_INFO
f_46145_
public static final GameRules$Key<GameRules$BooleanValue>
q
RULE_SPECTATORSGENERATECHUNKS
field_19402
f_kwjvqvpl
SPECTATORS_GENERATE_CHUNKS
f_46146_
public static final GameRules$Key<GameRules$IntegerValue>
r
RULE_SPAWN_RADIUS
field_19403
f_snezdope
SPAWN_RADIUS
f_46147_
public static final GameRules$Key<GameRules$BooleanValue>
s
RULE_DISABLE_ELYTRA_MOVEMENT_CHECK
field_19404
f_oxxclhgt
DISABLE_ELYTRA_MOVEMENT_CHECK
f_46148_
public static final GameRules$Key<GameRules$IntegerValue>
t
RULE_MAX_ENTITY_CRAMMING
field_19405
f_zumpbxtd
MAX_ENTITY_CRAMMING
f_46149_
public static final GameRules$Key<GameRules$BooleanValue>
u
RULE_WEATHER_CYCLE
field_19406
f_gmtiujwd
DO_WEATHER_CYCLE
f_46150_
public static final GameRules$Key<GameRules$BooleanValue>
v
RULE_LIMITED_CRAFTING
field_19407
f_enlwvizg
DO_LIMITED_CRAFTING
f_46151_
public static final GameRules$Key<GameRules$IntegerValue>
w
RULE_MAX_COMMAND_CHAIN_LENGTH
field_19408
f_vvenpozn
MAX_COMMAND_CHAIN_LENGTH
f_46152_
public static final GameRules$Key<GameRules$BooleanValue>
x
RULE_ANNOUNCE_ADVANCEMENTS
field_19409
f_xhcxhtfb
ANNOUNCE_ADVANCEMENTS
f_46153_
public static final GameRules$Key<GameRules$BooleanValue>
y
RULE_DISABLE_RAIDS
field_19422
f_qacbmgyi
DISABLE_RAIDS
f_46154_
public static final GameRules$Key<GameRules$BooleanValue>
z
RULE_DOINSOMNIA
field_20637
f_ddlhpkfi
DO_INSOMNIA
f_46155_
public static final GameRules$Key<GameRules$BooleanValue>
A
RULE_DO_IMMEDIATE_RESPAWN
field_20638
f_djarkqql
DO_IMMEDIATE_RESPAWN
f_46156_
public static final GameRules$Key<GameRules$BooleanValue>
B
RULE_DROWNING_DAMAGE
field_20634
f_ifwgdzjz
DROWNING_DAMAGE
f_46121_
public static final GameRules$Key<GameRules$BooleanValue>
C
RULE_FALL_DAMAGE
field_20635
f_uqgkyhqg
FALL_DAMAGE
f_46122_
public static final GameRules$Key<GameRules$BooleanValue>
D
RULE_FIRE_DAMAGE
field_20636
f_poqilblq
FIRE_DAMAGE
f_46123_
public static final GameRules$Key<GameRules$BooleanValue>
E
RULE_FREEZE_DAMAGE
field_28044
f_tnihyttb
FREEZE_DAMAGE
f_151485_
public static final GameRules$Key<GameRules$BooleanValue>
F
RULE_DO_PATROL_SPAWNING
field_21831
f_npbkaozn
DO_PATROL_SPAWNING
f_46124_
public static final GameRules$Key<GameRules$BooleanValue>
G
RULE_DO_TRADER_SPAWNING
field_21832
f_tamllbds
DO_TRADER_SPAWNING
f_46125_
public static final GameRules$Key<GameRules$BooleanValue>
H
RULE_FORGIVE_DEAD_PLAYERS
field_25401
f_knmgnowy
FORGIVE_DEAD_PLAYERS
f_46126_
public static final GameRules$Key<GameRules$BooleanValue>
I
RULE_UNIVERSAL_ANGER
field_25402
f_fhvryuhr
UNIVERSAL_ANGER
f_46127_
public static final GameRules$Key<GameRules$IntegerValue>
J
RULE_PLAYERS_SLEEPING_PERCENTAGE
field_28357
f_uwzhnovj
PLAYERS_SLEEPING_PERCENTAGE
f_151486_
private final Map<GameRules$Key<?>, GameRules$Value<?>>
M
rules
field_9196
f_aqbcwkwn
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, bzz$b arg1, bzz$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)
m_46189_(String p_46190_, C_1583_$C_1586_ p_46191_, C_1583_$C_1590_<T> p_46192_)
public <T extends GameRules$Value<T>> T
a(bzz$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)
m_46170_(C_1583_$C_1589_<T> arg0)
public CompoundTag
a()
createTag()
method_8358()
m_khbebsio()
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<?> arg0)
m_46183_(com.mojang.serialization.DynamicLike<?> arg0)
public GameRules
b()
copy()
method_27325()
m_kkvdhcio()
copy()
m_46202_()
public static void
a(bzz$c arg0)
visitGameRuleTypes(GameRules$GameRuleTypeVisitor arg0)
method_20744(class_1928$class_4311 arg0)
m_gdklogjj(C_xmldumst$C_avotqrag arg0)
accept(GameRules$Visitor visitor)
m_46164_(C_1583_$C_1587_ p_46165_)
private static <T extends GameRules$Value<T>> void
a(bzz$c arg0, bzz$e<?> arg1, bzz$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 consumer, GameRules$Key<?> key, GameRules$Type<?> type)
m_46166_(C_1583_$C_1587_ p_46167_, C_1583_$C_1589_<?> p_46168_, C_1583_$C_1590_<?> p_46169_)
public void
a(bzz 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)
m_46176_(C_1583_ p_46178_, C_4977_ arg1)
private <T extends GameRules$Value<T>> void
a(bzz$e<T> arg0, bzz 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)
m_46172_(C_1583_$C_1589_<T> p_46174_, C_1583_ p_46175_, C_4977_ arg2)
public boolean
b(bzz$e<bzz$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)
m_46207_(C_1583_$C_1589_<C_1583_$C_1585_> arg0)
public int
c(bzz$e<bzz$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)
m_46215_(C_1583_$C_1589_<C_1583_$C_1588_> arg0)