net.minecraft.world.level

public class GameRules

bhn
net.minecraft.world.level.GameRules
net.minecraft.class_1928
net.minecraft.world.GameRules
net.minecraft.world.GameRules
net.minecraft.server.v1_14_R1.GameRules

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
y
LOGGER
field_19410
LOGGER
field_223622_y
private static final Map<GameRules$Key<?>, GameRules$Type<?>>
z
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
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
private final Map<GameRules$Key<?>, GameRules$Value<?>>
A
rules
field_9196
rules
field_82771_a

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private static <T extends GameRules$Value<T>> GameRules$Key<T>
a(String arg0, bhn$e<T> arg1)
register(String arg0, GameRules$Type<T> arg1)
method_8359(String arg0, class_1928$class_4314<T> arg1)
register(String name, GameRules$RuleType<T> type)
func_223595_a(String arg0, GameRules$RuleType<T> arg1)
public <T extends GameRules$Value<T>> T
a(bhn$d<T> arg0)
getRule(GameRules$Key<T> arg0)
method_20746(class_1928$class_4313<T> arg0)
get(GameRules$RuleKey<T> key)
func_223585_a(GameRules$RuleKey<T> arg0)
get(GameRules$GameRuleKey<T> arg0)
public CompoundTag
a()
createTag()
method_8358()
toNbt()
func_82770_a()
public void
a(id arg0)
loadFromTag(CompoundTag arg0)
method_8357(class_2487 arg0)
load(CompoundTag nbt)
func_82768_a(CompoundNBT arg0)
public static void
a(bhn$b arg0)
visitGameRuleTypes(GameRules$GameRuleTypeVisitor arg0)
method_20744(class_1928$class_4311 arg0)
forEachType(GameRules$RuleConsumer action)
func_223590_a(GameRules$IRuleEntryVisitor arg0)
private static <T extends GameRules$Value<T>> void
a(bhn$b arg0, bhn$d<?> arg1, bhn$e<?> arg2)
cap(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$RuleConsumer consumer, GameRules$RuleKey<?> key, GameRules$RuleType<?> type)
func_223596_a(GameRules$IRuleEntryVisitor arg0, GameRules$RuleKey<?> arg1, GameRules$RuleType<?> arg2)
public boolean
b(bhn$d<bhn$a> arg0)
getBoolean(GameRules$Key<GameRules$BooleanValue> arg0)
method_8355(class_1928$class_4313<class_1928$class_4310> arg0)
getBoolean(GameRules$RuleKey<GameRules$BooleanRule> rule)
func_223586_b(GameRules$RuleKey<GameRules$BooleanValue> arg0)
getBoolean(GameRules$GameRuleKey<GameRules$GameRuleBoolean> arg0)
public int
c(bhn$d<bhn$c> arg0)
getInt(GameRules$Key<GameRules$IntegerValue> arg0)
method_8356(class_1928$class_4313<class_1928$class_4312> arg0)
getInt(GameRules$RuleKey<GameRules$IntRule> rule)
func_223592_c(GameRules$RuleKey<GameRules$IntegerValue> arg0)
getInt(GameRules$GameRuleKey<GameRules$GameRuleInt> arg0)