net.minecraft.world.level

public class GameRules

bpx
net.minecraft.world.level.GameRules
net.minecraft.class_1928
net.minecraft.world.GameRules
net.minecraft.world.GameRules
net.minecraft.server.v1_16_R1.GameRules

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
H
LOGGER
field_19410
LOGGER
field_223622_y
private static final Map<GameRules$Key<?>, GameRules$Type<?>>
I
GAME_RULE_TYPES
field_9197
RULE_TYPES
field_223623_z
public static final GameRules$Key<GameRules$BooleanValue>
a
RULE_DOFIRETICK
field_19387
DO_FIRE_TICK
field_223598_a
DO_FIRE_TICK
public static final GameRules$Key<GameRules$BooleanValue>
b
RULE_MOBGRIEFING
field_19388
DO_MOB_GRIEFING
field_223599_b
MOB_GRIEFING
public static final GameRules$Key<GameRules$BooleanValue>
c
RULE_KEEPINVENTORY
field_19389
KEEP_INVENTORY
field_223600_c
KEEP_INVENTORY
public static final GameRules$Key<GameRules$BooleanValue>
d
RULE_DOMOBSPAWNING
field_19390
DO_MOB_SPAWNING
field_223601_d
DO_MOB_SPAWNING
public static final GameRules$Key<GameRules$BooleanValue>
e
RULE_DOMOBLOOT
field_19391
DO_MOB_LOOT
field_223602_e
DO_MOB_LOOT
public static final GameRules$Key<GameRules$BooleanValue>
f
RULE_DOBLOCKDROPS
field_19392
DO_TILE_DROPS
field_223603_f
DO_TILE_DROPS
public static final GameRules$Key<GameRules$BooleanValue>
g
RULE_DOENTITYDROPS
field_19393
DO_ENTITY_DROPS
field_223604_g
DO_ENTITY_DROPS
public static final GameRules$Key<GameRules$BooleanValue>
h
RULE_COMMANDBLOCKOUTPUT
field_19394
COMMAND_BLOCK_OUTPUT
field_223605_h
COMMAND_BLOCK_OUTPUT
public static final GameRules$Key<GameRules$BooleanValue>
i
RULE_NATURAL_REGENERATION
field_19395
NATURAL_REGENERATION
field_223606_i
NATURAL_REGENERATION
public static final GameRules$Key<GameRules$BooleanValue>
j
RULE_DAYLIGHT
field_19396
DO_DAYLIGHT_CYCLE
field_223607_j
DO_DAYLIGHT_CYCLE
public static final GameRules$Key<GameRules$BooleanValue>
k
RULE_LOGADMINCOMMANDS
field_19397
LOG_ADMIN_COMMANDS
field_223608_k
LOG_ADMIN_COMMANDS
public static final GameRules$Key<GameRules$BooleanValue>
l
RULE_SHOWDEATHMESSAGES
field_19398
SHOW_DEATH_MESSAGES
field_223609_l
SHOW_DEATH_MESSAGES
public static final GameRules$Key<GameRules$IntegerValue>
m
RULE_RANDOMTICKING
field_19399
RANDOM_TICK_SPEED
field_223610_m
RANDOM_TICK_SPEED
public static final GameRules$Key<GameRules$BooleanValue>
n
RULE_SENDCOMMANDFEEDBACK
field_19400
SEND_COMMAND_FEEDBACK
field_223611_n
SEND_COMMAND_FEEDBACK
public static final GameRules$Key<GameRules$BooleanValue>
o
RULE_REDUCEDDEBUGINFO
field_19401
REDUCED_DEBUG_INFO
field_223612_o
REDUCED_DEBUG_INFO
public static final GameRules$Key<GameRules$BooleanValue>
p
RULE_SPECTATORSGENERATECHUNKS
field_19402
SPECTATORS_GENERATE_CHUNKS
field_223613_p
SPECTATORS_GENERATE_CHUNKS
public static final GameRules$Key<GameRules$IntegerValue>
q
RULE_SPAWN_RADIUS
field_19403
SPAWN_RADIUS
field_223614_q
SPAWN_RADIUS
public static final GameRules$Key<GameRules$BooleanValue>
r
RULE_DISABLE_ELYTRA_MOVEMENT_CHECK
field_19404
DISABLE_ELYTRA_MOVEMENT_CHECK
field_223615_r
DISABLE_ELYTRA_MOVEMENT_CHECK
public static final GameRules$Key<GameRules$IntegerValue>
s
RULE_MAX_ENTITY_CRAMMING
field_19405
MAX_ENTITY_CRAMMING
field_223616_s
MAX_ENTITY_CRAMMING
public static final GameRules$Key<GameRules$BooleanValue>
t
RULE_WEATHER_CYCLE
field_19406
DO_WEATHER_CYCLE
field_223617_t
DO_WEATHER_CYCLE
public static final GameRules$Key<GameRules$BooleanValue>
u
RULE_LIMITED_CRAFTING
field_19407
DO_LIMITED_CRAFTING
field_223618_u
DO_LIMITED_CRAFTING
public static final GameRules$Key<GameRules$IntegerValue>
v
RULE_MAX_COMMAND_CHAIN_LENGTH
field_19408
MAX_COMMAND_CHAIN_LENGTH
field_223619_v
MAX_COMMAND_CHAIN_LENGTH
public static final GameRules$Key<GameRules$BooleanValue>
w
RULE_ANNOUNCE_ADVANCEMENTS
field_19409
ANNOUNCE_ADVANCEMENTS
field_223620_w
ANNOUNCE_ADVANCEMENTS
public static final GameRules$Key<GameRules$BooleanValue>
x
RULE_DISABLE_RAIDS
field_19422
DISABLE_RAIDS
field_223621_x
DISABLE_RAIDS
public static final GameRules$Key<GameRules$BooleanValue>
y
RULE_DOINSOMNIA
field_20637
DO_INSOMNIA
field_226682_y_
DO_INSOMNIA
public static final GameRules$Key<GameRules$BooleanValue>
z
RULE_DO_IMMEDIATE_RESPAWN
field_20638
DO_IMMEDIATE_RESPAWN
field_226683_z_
DO_IMMEDIATE_RESPAWN
public static final GameRules$Key<GameRules$BooleanValue>
A
RULE_DROWNING_DAMAGE
field_20634
DROWNING_DAMAGE
field_226679_A_
DROWNING_DAMAGE
public static final GameRules$Key<GameRules$BooleanValue>
B
RULE_FALL_DAMAGE
field_20635
FALL_DAMAGE
field_226680_B_
FALL_DAMAGE
public static final GameRules$Key<GameRules$BooleanValue>
C
RULE_FIRE_DAMAGE
field_20636
FIRE_DAMAGE
field_226681_C_
FIRE_DAMAGE
public static final GameRules$Key<GameRules$BooleanValue>
D
RULE_DO_PATROL_SPAWNING
field_21831
DO_PATROL_SPAWNING
field_230127_D_
DO_PATROL_SPAWNING
public static final GameRules$Key<GameRules$BooleanValue>
E
RULE_DO_TRADER_SPAWNING
field_21832
DO_TRADER_SPAWNING
field_230128_E_
DO_TRADER_SPAWNING
public static final GameRules$Key<GameRules$BooleanValue>
F
RULE_FORGIVE_DEAD_PLAYERS
field_25401
FORGIVE_DEAD_PLAYERS
field_234895_F_
FORGIVE_DEAD_PLAYERS
public static final GameRules$Key<GameRules$BooleanValue>
G
RULE_UNIVERSAL_ANGER
field_25402
UNIVERSAL_ANGER
field_234896_G_
UNIVERSAL_ANGER
private final Map<GameRules$Key<?>, GameRules$Value<?>>
J
rules
field_9196
rules
field_82771_a

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, bpx$b arg1, bpx$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)
func_234903_a_(String arg0, GameRules$Category arg1, GameRules$RuleType<T> arg2)
public <T extends GameRules$Value<T>> T
a(bpx$e<T> arg0)
getRule(GameRules$Key<T> arg0)
method_20746(class_1928$class_4313<T> arg0)
get(GameRules$Key<T> key)
func_223585_a(GameRules$RuleKey<T> arg0)
get(GameRules$GameRuleKey<T> arg0)
public CompoundTag
a()
createTag()
method_8358()
toNbt()
func_82770_a()
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)
func_234901_a_(com.mojang.serialization.DynamicLike<?> arg0)
public GameRules
b()
copy()
method_27325()
copy()
func_234905_b_()
public static void
a(bpx$c arg0)
visitGameRuleTypes(GameRules$GameRuleTypeVisitor arg0)
method_20744(class_1928$class_4311 arg0)
forEachType(GameRules$TypeConsumer action)
func_223590_a(GameRules$IRuleEntryVisitor arg0)
private static <T extends GameRules$Value<T>> void
a(bpx$c arg0, bpx$e<?> arg1, bpx$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$TypeConsumer consumer, GameRules$Key<?> key, GameRules$Type<?> type)
func_234897_a_(GameRules$IRuleEntryVisitor arg0, GameRules$RuleKey<?> arg1, GameRules$RuleType<?> arg2)
public boolean
b(bpx$e<bpx$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)
func_223586_b(GameRules$RuleKey<GameRules$BooleanValue> arg0)
getBoolean(GameRules$GameRuleKey<GameRules$GameRuleBoolean> arg0)
public int
c(bpx$e<bpx$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)
func_223592_c(GameRules$RuleKey<GameRules$IntegerValue> arg0)
getInt(GameRules$GameRuleKey<GameRules$GameRuleInt> arg0)
public void
a(bpx arg0, MinecraftServer arg1)
assignFrom(GameRules arg0, MinecraftServer arg1)
method_27322(class_1928 arg0, MinecraftServer arg1)
setAllValues(GameRules rules, MinecraftServer server)
func_234899_a_(GameRules arg0, MinecraftServer arg1)
private <T extends GameRules$Value<T>> void
a(bpx$e<T> arg0, bpx 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)
func_234898_a_(GameRules$RuleKey<T> arg0, GameRules arg1, MinecraftServer arg2)