net.minecraft.world.level

public class GameRules

dgf
net.minecraft.world.level.GameRules
net.minecraft.class_1928
net.minecraft.world.GameRules
net.minecraft.world.level.GameRules

Field summary

Modifier and TypeField
public static final int
a
DEFAULT_RANDOM_TICK_SPEED
field_30963
DEFAULT_RANDOM_TICK_SPEED
static final org.slf4j.Logger
ac
LOGGER
field_19410
LOGGER
private static final Map<GameRules$Key<?>, GameRules$Type<?>>
ad
GAME_RULE_TYPES
field_9197
RULE_TYPES
public static final GameRules$Key<GameRules$BooleanValue>
b
RULE_DOFIRETICK
field_19387
DO_FIRE_TICK
public static final GameRules$Key<GameRules$BooleanValue>
c
RULE_MOBGRIEFING
field_19388
DO_MOB_GRIEFING
public static final GameRules$Key<GameRules$BooleanValue>
d
RULE_KEEPINVENTORY
field_19389
KEEP_INVENTORY
public static final GameRules$Key<GameRules$BooleanValue>
e
RULE_DOMOBSPAWNING
field_19390
DO_MOB_SPAWNING
public static final GameRules$Key<GameRules$BooleanValue>
f
RULE_DOMOBLOOT
field_19391
DO_MOB_LOOT
public static final GameRules$Key<GameRules$BooleanValue>
g
RULE_PROJECTILESCANBREAKBLOCKS
field_46796
PROJECTILES_CAN_BREAK_BLOCKS
public static final GameRules$Key<GameRules$BooleanValue>
h
RULE_DOBLOCKDROPS
field_19392
DO_TILE_DROPS
public static final GameRules$Key<GameRules$BooleanValue>
i
RULE_DOENTITYDROPS
field_19393
DO_ENTITY_DROPS
public static final GameRules$Key<GameRules$BooleanValue>
j
RULE_COMMANDBLOCKOUTPUT
field_19394
COMMAND_BLOCK_OUTPUT
public static final GameRules$Key<GameRules$BooleanValue>
k
RULE_NATURAL_REGENERATION
field_19395
NATURAL_REGENERATION
public static final GameRules$Key<GameRules$BooleanValue>
l
RULE_DAYLIGHT
field_19396
DO_DAYLIGHT_CYCLE
public static final GameRules$Key<GameRules$BooleanValue>
m
RULE_LOGADMINCOMMANDS
field_19397
LOG_ADMIN_COMMANDS
public static final GameRules$Key<GameRules$BooleanValue>
n
RULE_SHOWDEATHMESSAGES
field_19398
SHOW_DEATH_MESSAGES
public static final GameRules$Key<GameRules$IntegerValue>
o
RULE_RANDOMTICKING
field_19399
RANDOM_TICK_SPEED
public static final GameRules$Key<GameRules$BooleanValue>
p
RULE_SENDCOMMANDFEEDBACK
field_19400
SEND_COMMAND_FEEDBACK
public static final GameRules$Key<GameRules$BooleanValue>
q
RULE_REDUCEDDEBUGINFO
field_19401
REDUCED_DEBUG_INFO
public static final GameRules$Key<GameRules$BooleanValue>
r
RULE_SPECTATORSGENERATECHUNKS
field_19402
SPECTATORS_GENERATE_CHUNKS
public static final GameRules$Key<GameRules$IntegerValue>
s
RULE_SPAWN_RADIUS
field_19403
SPAWN_RADIUS
public static final GameRules$Key<GameRules$BooleanValue>
t
RULE_DISABLE_PLAYER_MOVEMENT_CHECK
field_54909
DISABLE_PLAYER_MOVEMENT_CHECK
public static final GameRules$Key<GameRules$BooleanValue>
u
RULE_DISABLE_ELYTRA_MOVEMENT_CHECK
field_19404
DISABLE_ELYTRA_MOVEMENT_CHECK
public static final GameRules$Key<GameRules$IntegerValue>
v
RULE_MAX_ENTITY_CRAMMING
field_19405
MAX_ENTITY_CRAMMING
public static final GameRules$Key<GameRules$BooleanValue>
w
RULE_WEATHER_CYCLE
field_19406
DO_WEATHER_CYCLE
public static final GameRules$Key<GameRules$BooleanValue>
x
RULE_LIMITED_CRAFTING
field_19407
DO_LIMITED_CRAFTING
public static final GameRules$Key<GameRules$IntegerValue>
y
RULE_MAX_COMMAND_CHAIN_LENGTH
field_19408
MAX_COMMAND_CHAIN_LENGTH
public static final GameRules$Key<GameRules$IntegerValue>
z
RULE_MAX_COMMAND_FORK_COUNT
field_46658
MAX_COMMAND_FORK_COUNT
public static final GameRules$Key<GameRules$IntegerValue>
A
RULE_COMMAND_MODIFICATION_BLOCK_LIMIT
field_41766
COMMAND_MODIFICATION_BLOCK_LIMIT
public static final GameRules$Key<GameRules$BooleanValue>
B
RULE_ANNOUNCE_ADVANCEMENTS
field_19409
ANNOUNCE_ADVANCEMENTS
public static final GameRules$Key<GameRules$BooleanValue>
C
RULE_DISABLE_RAIDS
field_19422
DISABLE_RAIDS
public static final GameRules$Key<GameRules$BooleanValue>
D
RULE_DOINSOMNIA
field_20637
DO_INSOMNIA
public static final GameRules$Key<GameRules$BooleanValue>
E
RULE_DO_IMMEDIATE_RESPAWN
field_20638
DO_IMMEDIATE_RESPAWN
public static final GameRules$Key<GameRules$IntegerValue>
F
RULE_PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
field_46794
PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
public static final GameRules$Key<GameRules$IntegerValue>
G
RULE_PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
field_46795
PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
public static final GameRules$Key<GameRules$BooleanValue>
H
RULE_DROWNING_DAMAGE
field_20634
DROWNING_DAMAGE
public static final GameRules$Key<GameRules$BooleanValue>
I
RULE_FALL_DAMAGE
field_20635
FALL_DAMAGE
public static final GameRules$Key<GameRules$BooleanValue>
J
RULE_FIRE_DAMAGE
field_20636
FIRE_DAMAGE
public static final GameRules$Key<GameRules$BooleanValue>
K
RULE_FREEZE_DAMAGE
field_28044
FREEZE_DAMAGE
public static final GameRules$Key<GameRules$BooleanValue>
L
RULE_DO_PATROL_SPAWNING
field_21831
DO_PATROL_SPAWNING
public static final GameRules$Key<GameRules$BooleanValue>
M
RULE_DO_TRADER_SPAWNING
field_21832
DO_TRADER_SPAWNING
public static final GameRules$Key<GameRules$BooleanValue>
N
RULE_DO_WARDEN_SPAWNING
field_38975
DO_WARDEN_SPAWNING
public static final GameRules$Key<GameRules$BooleanValue>
O
RULE_FORGIVE_DEAD_PLAYERS
field_25401
FORGIVE_DEAD_PLAYERS
public static final GameRules$Key<GameRules$BooleanValue>
P
RULE_UNIVERSAL_ANGER
field_25402
UNIVERSAL_ANGER
public static final GameRules$Key<GameRules$IntegerValue>
Q
RULE_PLAYERS_SLEEPING_PERCENTAGE
field_28357
PLAYERS_SLEEPING_PERCENTAGE
public static final GameRules$Key<GameRules$BooleanValue>
R
RULE_BLOCK_EXPLOSION_DROP_DECAY
field_40880
BLOCK_EXPLOSION_DROP_DECAY
public static final GameRules$Key<GameRules$BooleanValue>
S
RULE_MOB_EXPLOSION_DROP_DECAY
field_40881
MOB_EXPLOSION_DROP_DECAY
public static final GameRules$Key<GameRules$BooleanValue>
T
RULE_TNT_EXPLOSION_DROP_DECAY
field_40882
TNT_EXPLOSION_DROP_DECAY
public static final GameRules$Key<GameRules$IntegerValue>
U
RULE_SNOW_ACCUMULATION_HEIGHT
field_40883
SNOW_ACCUMULATION_HEIGHT
public static final GameRules$Key<GameRules$BooleanValue>
V
RULE_WATER_SOURCE_CONVERSION
field_40884
WATER_SOURCE_CONVERSION
public static final GameRules$Key<GameRules$BooleanValue>
W
RULE_LAVA_SOURCE_CONVERSION
field_40885
LAVA_SOURCE_CONVERSION
public static final GameRules$Key<GameRules$BooleanValue>
X
RULE_GLOBAL_SOUND_EVENTS
field_40886
GLOBAL_SOUND_EVENTS
public static final GameRules$Key<GameRules$BooleanValue>
Y
RULE_DO_VINES_SPREAD
field_42474
DO_VINES_SPREAD
public static final GameRules$Key<GameRules$BooleanValue>
Z
RULE_ENDER_PEARLS_VANISH_ON_DEATH
field_46176
ENDER_PEARLS_VANISH_ON_DEATH
public static final GameRules$Key<GameRules$IntegerValue>
aa
RULE_MINECART_MAX_SPEED
field_52614
MINECART_MAX_SPEED
public static final GameRules$Key<GameRules$IntegerValue>
ab
RULE_SPAWN_CHUNK_RADIUS
field_48374
SPAWN_CHUNK_RADIUS
private final Map<GameRules$Key<?>, GameRules$Value<?>>
ae
rules
field_9196
rules
private final FeatureFlagSet
af
enabledFeatures
field_52615
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
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)
register(String name, GameRules$Category category, GameRules$Type<T> type)
private static Stream<Map$Entry<GameRules$Key<?>, GameRules$Type<?>>>
b(cru arg0)
availableRules(FeatureFlagSet arg0)
method_61725(class_7699 arg0)
streamAllRules(FeatureSet enabledFeatures)
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)
get(GameRules$Key<T> key)
public CompoundTag
a()
createTag()
method_8358()
toNbt()
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<?> values)
public GameRules
a(cru arg0)
copy(FeatureFlagSet arg0)
method_27325(class_7699 arg0)
copy(FeatureSet enabledFeatures)
public void
a(dgf$c arg0)
visitGameRuleTypes(GameRules$GameRuleTypeVisitor arg0)
method_20744(class_1928$class_4311 arg0)
accept(GameRules$Visitor visitor)
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)
accept(GameRules$Visitor visitor, GameRules$Key<?> key, GameRules$Type<?> type)
public void
a(dgf arg0, MinecraftServer arg1)
assignFrom(GameRules arg0, MinecraftServer arg1)
method_27322(class_1928 arg0, MinecraftServer arg1)
setAllValues(GameRules rules, MinecraftServer server)
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)
setValue(GameRules$Key<T> key, GameRules rules, MinecraftServer server)
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)
getBoolean(GameRules$Key<GameRules$BooleanRule> rule)
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)
getInt(GameRules$Key<GameRules$IntRule> rule)