Package net.minecraft.world
Class GameRules
java.lang.Object
net.minecraft.world.GameRules
- Mappings:
Namespace Name named net/minecraft/world/GameRules
intermediary net/minecraft/class_1928
official dhd
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
GameRules.Acceptor<T extends GameRules.Rule<T>>
static class
static enum
static class
static final class
GameRules.Key<T extends GameRules.Rule<T>>
static class
GameRules.Rule<T extends GameRules.Rule<T>>
static class
GameRules.Type<T extends GameRules.Rule<T>>
static interface
A visitor used to visit all game rules. -
Field Summary
Modifier and TypeFieldDescriptionstatic final GameRules.Key
<GameRules.BooleanRule> A game rule which regulates whether a player's advancements should be announced in chat.static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.IntRule> static final int
static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> A game rule which regulates whether raids should occur.static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> A game rule which regulates whether a player should immediately respawn upon death.static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> A game rule which regulates whether mobs can modify the world.static final GameRules.Key
<GameRules.BooleanRule> A game rule which regulates whether mobs should drop loot on death.static final GameRules.Key
<GameRules.BooleanRule> A game rule which regulates whether mobs can spawn naturally.static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> A game rule which regulates whether blocks should drop their items when broken.static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> private final FeatureSet
static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> A game rule which regulates whether player inventories should be persist through respawning.static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> (package private) static final Logger
static final GameRules.Key
<GameRules.IntRule> static final GameRules.Key
<GameRules.IntRule> static final GameRules.Key
<GameRules.IntRule> A game rule which regulates the number of entities that can be crammed into a block space before they incur cramming damage.static final GameRules.Key
<GameRules.IntRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.IntRule> static final GameRules.Key
<GameRules.IntRule> static final GameRules.Key
<GameRules.IntRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.IntRule> static final GameRules.Key
<GameRules.BooleanRule> private static final Map
<GameRules.Key<?>, GameRules.Type<?>> private final Map
<GameRules.Key<?>, GameRules.Rule<?>> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.IntRule> static final GameRules.Key
<GameRules.IntRule> static final GameRules.Key
<GameRules.IntRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> static final GameRules.Key
<GameRules.BooleanRule> -
Constructor Summary
ModifierConstructorDescriptionprivate
GameRules
(Map<GameRules.Key<?>, GameRules.Rule<?>> rules, FeatureSet enabledFeatures) GameRules
(FeatureSet enabledFeatures) GameRules
(FeatureSet enabledFeatures, com.mojang.serialization.DynamicLike<?> values) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(GameRules.Visitor visitor) Make the visitor visit all registered game rules.private <T extends GameRules.Rule<T>>
voidaccept
(GameRules.Visitor visitor, GameRules.Key<?> key, GameRules.Type<?> type) copy
(FeatureSet enabledFeatures) <T extends GameRules.Rule<T>>
Tget
(GameRules.Key<T> key) boolean
int
getInt
(GameRules.Key<GameRules.IntRule> rule) private void
load
(com.mojang.serialization.DynamicLike<?> values) private static <T extends GameRules.Rule<T>>
GameRules.Key<T> register
(String name, GameRules.Category category, GameRules.Type<T> type) void
setAllValues
(GameRules rules, @Nullable MinecraftServer server) private <T extends GameRules.Rule<T>>
voidsetValue
(GameRules.Key<T> key, GameRules rules, @Nullable MinecraftServer server) private static Stream
<Map.Entry<GameRules.Key<?>, GameRules.Type<?>>> streamAllRules
(FeatureSet enabledFeatures) toNbt()
-
Field Details
-
DEFAULT_RANDOM_TICK_SPEED
public static final int DEFAULT_RANDOM_TICK_SPEED- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_RANDOM_TICK_SPEED
Lnet/minecraft/world/GameRules;DEFAULT_RANDOM_TICK_SPEED:I
intermediary field_30963
Lnet/minecraft/class_1928;field_30963:I
official a
Ldhd;a:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/world/GameRules;LOGGER:Lorg/slf4j/Logger;
intermediary field_19410
Lnet/minecraft/class_1928;field_19410:Lorg/slf4j/Logger;
official ac
Ldhd;ac:Lorg/slf4j/Logger;
-
RULE_TYPES
- Mappings:
Namespace Name Mixin selector named RULE_TYPES
Lnet/minecraft/world/GameRules;RULE_TYPES:Ljava/util/Map;
intermediary field_9197
Lnet/minecraft/class_1928;field_9197:Ljava/util/Map;
official ad
Ldhd;ad:Ljava/util/Map;
-
DO_FIRE_TICK
- Mappings:
Namespace Name Mixin selector named DO_FIRE_TICK
Lnet/minecraft/world/GameRules;DO_FIRE_TICK:Lnet/minecraft/world/GameRules$Key;
intermediary field_19387
Lnet/minecraft/class_1928;field_19387:Lnet/minecraft/class_1928$class_4313;
official b
Ldhd;b:Ldhd$e;
-
DO_MOB_GRIEFING
A game rule which regulates whether mobs can modify the world.Generally one is expected to test this rule before an entity modifies the world.
In vanilla, this includes:
- Whether creeper explosions destroy blocks
- Whether a zombie can break down a door
- Whether a wither killing an entity will place or drop a wither rose
- Mappings:
Namespace Name Mixin selector named DO_MOB_GRIEFING
Lnet/minecraft/world/GameRules;DO_MOB_GRIEFING:Lnet/minecraft/world/GameRules$Key;
intermediary field_19388
Lnet/minecraft/class_1928;field_19388:Lnet/minecraft/class_1928$class_4313;
official c
Ldhd;c:Ldhd$e;
-
KEEP_INVENTORY
A game rule which regulates whether player inventories should be persist through respawning.- Mappings:
Namespace Name Mixin selector named KEEP_INVENTORY
Lnet/minecraft/world/GameRules;KEEP_INVENTORY:Lnet/minecraft/world/GameRules$Key;
intermediary field_19389
Lnet/minecraft/class_1928;field_19389:Lnet/minecraft/class_1928$class_4313;
official d
Ldhd;d:Ldhd$e;
-
DO_MOB_SPAWNING
A game rule which regulates whether mobs can spawn naturally.- Mappings:
Namespace Name Mixin selector named DO_MOB_SPAWNING
Lnet/minecraft/world/GameRules;DO_MOB_SPAWNING:Lnet/minecraft/world/GameRules$Key;
intermediary field_19390
Lnet/minecraft/class_1928;field_19390:Lnet/minecraft/class_1928$class_4313;
official e
Ldhd;e:Ldhd$e;
-
DO_MOB_LOOT
A game rule which regulates whether mobs should drop loot on death.- Mappings:
Namespace Name Mixin selector named DO_MOB_LOOT
Lnet/minecraft/world/GameRules;DO_MOB_LOOT:Lnet/minecraft/world/GameRules$Key;
intermediary field_19391
Lnet/minecraft/class_1928;field_19391:Lnet/minecraft/class_1928$class_4313;
official f
Ldhd;f:Ldhd$e;
-
PROJECTILES_CAN_BREAK_BLOCKS
- Mappings:
Namespace Name Mixin selector named PROJECTILES_CAN_BREAK_BLOCKS
Lnet/minecraft/world/GameRules;PROJECTILES_CAN_BREAK_BLOCKS:Lnet/minecraft/world/GameRules$Key;
intermediary field_46796
Lnet/minecraft/class_1928;field_46796:Lnet/minecraft/class_1928$class_4313;
official g
Ldhd;g:Ldhd$e;
-
DO_TILE_DROPS
A game rule which regulates whether blocks should drop their items when broken.- Mappings:
Namespace Name Mixin selector named DO_TILE_DROPS
Lnet/minecraft/world/GameRules;DO_TILE_DROPS:Lnet/minecraft/world/GameRules$Key;
intermediary field_19392
Lnet/minecraft/class_1928;field_19392:Lnet/minecraft/class_1928$class_4313;
official h
Ldhd;h:Ldhd$e;
-
DO_ENTITY_DROPS
- Mappings:
Namespace Name Mixin selector named DO_ENTITY_DROPS
Lnet/minecraft/world/GameRules;DO_ENTITY_DROPS:Lnet/minecraft/world/GameRules$Key;
intermediary field_19393
Lnet/minecraft/class_1928;field_19393:Lnet/minecraft/class_1928$class_4313;
official i
Ldhd;i:Ldhd$e;
-
COMMAND_BLOCK_OUTPUT
- Mappings:
Namespace Name Mixin selector named COMMAND_BLOCK_OUTPUT
Lnet/minecraft/world/GameRules;COMMAND_BLOCK_OUTPUT:Lnet/minecraft/world/GameRules$Key;
intermediary field_19394
Lnet/minecraft/class_1928;field_19394:Lnet/minecraft/class_1928$class_4313;
official j
Ldhd;j:Ldhd$e;
-
NATURAL_REGENERATION
- Mappings:
Namespace Name Mixin selector named NATURAL_REGENERATION
Lnet/minecraft/world/GameRules;NATURAL_REGENERATION:Lnet/minecraft/world/GameRules$Key;
intermediary field_19395
Lnet/minecraft/class_1928;field_19395:Lnet/minecraft/class_1928$class_4313;
official k
Ldhd;k:Ldhd$e;
-
DO_DAYLIGHT_CYCLE
- Mappings:
Namespace Name Mixin selector named DO_DAYLIGHT_CYCLE
Lnet/minecraft/world/GameRules;DO_DAYLIGHT_CYCLE:Lnet/minecraft/world/GameRules$Key;
intermediary field_19396
Lnet/minecraft/class_1928;field_19396:Lnet/minecraft/class_1928$class_4313;
official l
Ldhd;l:Ldhd$e;
-
LOG_ADMIN_COMMANDS
- Mappings:
Namespace Name Mixin selector named LOG_ADMIN_COMMANDS
Lnet/minecraft/world/GameRules;LOG_ADMIN_COMMANDS:Lnet/minecraft/world/GameRules$Key;
intermediary field_19397
Lnet/minecraft/class_1928;field_19397:Lnet/minecraft/class_1928$class_4313;
official m
Ldhd;m:Ldhd$e;
-
SHOW_DEATH_MESSAGES
- Mappings:
Namespace Name Mixin selector named SHOW_DEATH_MESSAGES
Lnet/minecraft/world/GameRules;SHOW_DEATH_MESSAGES:Lnet/minecraft/world/GameRules$Key;
intermediary field_19398
Lnet/minecraft/class_1928;field_19398:Lnet/minecraft/class_1928$class_4313;
official n
Ldhd;n:Ldhd$e;
-
RANDOM_TICK_SPEED
- Mappings:
Namespace Name Mixin selector named RANDOM_TICK_SPEED
Lnet/minecraft/world/GameRules;RANDOM_TICK_SPEED:Lnet/minecraft/world/GameRules$Key;
intermediary field_19399
Lnet/minecraft/class_1928;field_19399:Lnet/minecraft/class_1928$class_4313;
official o
Ldhd;o:Ldhd$e;
-
SEND_COMMAND_FEEDBACK
- Mappings:
Namespace Name Mixin selector named SEND_COMMAND_FEEDBACK
Lnet/minecraft/world/GameRules;SEND_COMMAND_FEEDBACK:Lnet/minecraft/world/GameRules$Key;
intermediary field_19400
Lnet/minecraft/class_1928;field_19400:Lnet/minecraft/class_1928$class_4313;
official p
Ldhd;p:Ldhd$e;
-
REDUCED_DEBUG_INFO
A game rule which regulates whether clients' debug HUDs show reduced information.When the value of this rule is changed, all connected clients will be notified to update their display. In vanilla, this includes the visibility of coordinates on the clients' debug HUDs.
- Mappings:
Namespace Name Mixin selector named REDUCED_DEBUG_INFO
Lnet/minecraft/world/GameRules;REDUCED_DEBUG_INFO:Lnet/minecraft/world/GameRules$Key;
intermediary field_19401
Lnet/minecraft/class_1928;field_19401:Lnet/minecraft/class_1928$class_4313;
official q
Ldhd;q:Ldhd$e;
-
SPECTATORS_GENERATE_CHUNKS
- Mappings:
Namespace Name Mixin selector named SPECTATORS_GENERATE_CHUNKS
Lnet/minecraft/world/GameRules;SPECTATORS_GENERATE_CHUNKS:Lnet/minecraft/world/GameRules$Key;
intermediary field_19402
Lnet/minecraft/class_1928;field_19402:Lnet/minecraft/class_1928$class_4313;
official r
Ldhd;r:Ldhd$e;
-
SPAWN_RADIUS
- Mappings:
Namespace Name Mixin selector named SPAWN_RADIUS
Lnet/minecraft/world/GameRules;SPAWN_RADIUS:Lnet/minecraft/world/GameRules$Key;
intermediary field_19403
Lnet/minecraft/class_1928;field_19403:Lnet/minecraft/class_1928$class_4313;
official s
Ldhd;s:Ldhd$e;
-
DISABLE_PLAYER_MOVEMENT_CHECK
- Mappings:
Namespace Name Mixin selector named DISABLE_PLAYER_MOVEMENT_CHECK
Lnet/minecraft/world/GameRules;DISABLE_PLAYER_MOVEMENT_CHECK:Lnet/minecraft/world/GameRules$Key;
intermediary field_54909
Lnet/minecraft/class_1928;field_54909:Lnet/minecraft/class_1928$class_4313;
official t
Ldhd;t:Ldhd$e;
-
DISABLE_ELYTRA_MOVEMENT_CHECK
- Mappings:
Namespace Name Mixin selector named DISABLE_ELYTRA_MOVEMENT_CHECK
Lnet/minecraft/world/GameRules;DISABLE_ELYTRA_MOVEMENT_CHECK:Lnet/minecraft/world/GameRules$Key;
intermediary field_19404
Lnet/minecraft/class_1928;field_19404:Lnet/minecraft/class_1928$class_4313;
official u
Ldhd;u:Ldhd$e;
-
MAX_ENTITY_CRAMMING
A game rule which regulates the number of entities that can be crammed into a block space before they incur cramming damage.- Mappings:
Namespace Name Mixin selector named MAX_ENTITY_CRAMMING
Lnet/minecraft/world/GameRules;MAX_ENTITY_CRAMMING:Lnet/minecraft/world/GameRules$Key;
intermediary field_19405
Lnet/minecraft/class_1928;field_19405:Lnet/minecraft/class_1928$class_4313;
official v
Ldhd;v:Ldhd$e;
-
DO_WEATHER_CYCLE
- Mappings:
Namespace Name Mixin selector named DO_WEATHER_CYCLE
Lnet/minecraft/world/GameRules;DO_WEATHER_CYCLE:Lnet/minecraft/world/GameRules$Key;
intermediary field_19406
Lnet/minecraft/class_1928;field_19406:Lnet/minecraft/class_1928$class_4313;
official w
Ldhd;w:Ldhd$e;
-
DO_LIMITED_CRAFTING
- Mappings:
Namespace Name Mixin selector named DO_LIMITED_CRAFTING
Lnet/minecraft/world/GameRules;DO_LIMITED_CRAFTING:Lnet/minecraft/world/GameRules$Key;
intermediary field_19407
Lnet/minecraft/class_1928;field_19407:Lnet/minecraft/class_1928$class_4313;
official x
Ldhd;x:Ldhd$e;
-
MAX_COMMAND_CHAIN_LENGTH
- Mappings:
Namespace Name Mixin selector named MAX_COMMAND_CHAIN_LENGTH
Lnet/minecraft/world/GameRules;MAX_COMMAND_CHAIN_LENGTH:Lnet/minecraft/world/GameRules$Key;
intermediary field_19408
Lnet/minecraft/class_1928;field_19408:Lnet/minecraft/class_1928$class_4313;
official y
Ldhd;y:Ldhd$e;
-
MAX_COMMAND_FORK_COUNT
- Mappings:
Namespace Name Mixin selector named MAX_COMMAND_FORK_COUNT
Lnet/minecraft/world/GameRules;MAX_COMMAND_FORK_COUNT:Lnet/minecraft/world/GameRules$Key;
intermediary field_46658
Lnet/minecraft/class_1928;field_46658:Lnet/minecraft/class_1928$class_4313;
official z
Ldhd;z:Ldhd$e;
-
COMMAND_MODIFICATION_BLOCK_LIMIT
- Mappings:
Namespace Name Mixin selector named COMMAND_MODIFICATION_BLOCK_LIMIT
Lnet/minecraft/world/GameRules;COMMAND_MODIFICATION_BLOCK_LIMIT:Lnet/minecraft/world/GameRules$Key;
intermediary field_41766
Lnet/minecraft/class_1928;field_41766:Lnet/minecraft/class_1928$class_4313;
official A
Ldhd;A:Ldhd$e;
-
ANNOUNCE_ADVANCEMENTS
A game rule which regulates whether a player's advancements should be announced in chat.- Mappings:
Namespace Name Mixin selector named ANNOUNCE_ADVANCEMENTS
Lnet/minecraft/world/GameRules;ANNOUNCE_ADVANCEMENTS:Lnet/minecraft/world/GameRules$Key;
intermediary field_19409
Lnet/minecraft/class_1928;field_19409:Lnet/minecraft/class_1928$class_4313;
official B
Ldhd;B:Ldhd$e;
-
DISABLE_RAIDS
A game rule which regulates whether raids should occur.If this rule is set to
true
while raids are occurring, the raids will be stopped.- Mappings:
Namespace Name Mixin selector named DISABLE_RAIDS
Lnet/minecraft/world/GameRules;DISABLE_RAIDS:Lnet/minecraft/world/GameRules$Key;
intermediary field_19422
Lnet/minecraft/class_1928;field_19422:Lnet/minecraft/class_1928$class_4313;
official C
Ldhd;C:Ldhd$e;
-
DO_INSOMNIA
- Mappings:
Namespace Name Mixin selector named DO_INSOMNIA
Lnet/minecraft/world/GameRules;DO_INSOMNIA:Lnet/minecraft/world/GameRules$Key;
intermediary field_20637
Lnet/minecraft/class_1928;field_20637:Lnet/minecraft/class_1928$class_4313;
official D
Ldhd;D:Ldhd$e;
-
DO_IMMEDIATE_RESPAWN
A game rule which regulates whether a player should immediately respawn upon death.- Mappings:
Namespace Name Mixin selector named DO_IMMEDIATE_RESPAWN
Lnet/minecraft/world/GameRules;DO_IMMEDIATE_RESPAWN:Lnet/minecraft/world/GameRules$Key;
intermediary field_20638
Lnet/minecraft/class_1928;field_20638:Lnet/minecraft/class_1928$class_4313;
official E
Ldhd;E:Ldhd$e;
-
PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
- Mappings:
Namespace Name Mixin selector named PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
Lnet/minecraft/world/GameRules;PLAYERS_NETHER_PORTAL_DEFAULT_DELAY:Lnet/minecraft/world/GameRules$Key;
intermediary field_46794
Lnet/minecraft/class_1928;field_46794:Lnet/minecraft/class_1928$class_4313;
official F
Ldhd;F:Ldhd$e;
-
PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
- Mappings:
Namespace Name Mixin selector named PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
Lnet/minecraft/world/GameRules;PLAYERS_NETHER_PORTAL_CREATIVE_DELAY:Lnet/minecraft/world/GameRules$Key;
intermediary field_46795
Lnet/minecraft/class_1928;field_46795:Lnet/minecraft/class_1928$class_4313;
official G
Ldhd;G:Ldhd$e;
-
DROWNING_DAMAGE
- Mappings:
Namespace Name Mixin selector named DROWNING_DAMAGE
Lnet/minecraft/world/GameRules;DROWNING_DAMAGE:Lnet/minecraft/world/GameRules$Key;
intermediary field_20634
Lnet/minecraft/class_1928;field_20634:Lnet/minecraft/class_1928$class_4313;
official H
Ldhd;H:Ldhd$e;
-
FALL_DAMAGE
- Mappings:
Namespace Name Mixin selector named FALL_DAMAGE
Lnet/minecraft/world/GameRules;FALL_DAMAGE:Lnet/minecraft/world/GameRules$Key;
intermediary field_20635
Lnet/minecraft/class_1928;field_20635:Lnet/minecraft/class_1928$class_4313;
official I
Ldhd;I:Ldhd$e;
-
FIRE_DAMAGE
- Mappings:
Namespace Name Mixin selector named FIRE_DAMAGE
Lnet/minecraft/world/GameRules;FIRE_DAMAGE:Lnet/minecraft/world/GameRules$Key;
intermediary field_20636
Lnet/minecraft/class_1928;field_20636:Lnet/minecraft/class_1928$class_4313;
official J
Ldhd;J:Ldhd$e;
-
FREEZE_DAMAGE
- Mappings:
Namespace Name Mixin selector named FREEZE_DAMAGE
Lnet/minecraft/world/GameRules;FREEZE_DAMAGE:Lnet/minecraft/world/GameRules$Key;
intermediary field_28044
Lnet/minecraft/class_1928;field_28044:Lnet/minecraft/class_1928$class_4313;
official K
Ldhd;K:Ldhd$e;
-
DO_PATROL_SPAWNING
- Mappings:
Namespace Name Mixin selector named DO_PATROL_SPAWNING
Lnet/minecraft/world/GameRules;DO_PATROL_SPAWNING:Lnet/minecraft/world/GameRules$Key;
intermediary field_21831
Lnet/minecraft/class_1928;field_21831:Lnet/minecraft/class_1928$class_4313;
official L
Ldhd;L:Ldhd$e;
-
DO_TRADER_SPAWNING
- Mappings:
Namespace Name Mixin selector named DO_TRADER_SPAWNING
Lnet/minecraft/world/GameRules;DO_TRADER_SPAWNING:Lnet/minecraft/world/GameRules$Key;
intermediary field_21832
Lnet/minecraft/class_1928;field_21832:Lnet/minecraft/class_1928$class_4313;
official M
Ldhd;M:Ldhd$e;
-
DO_WARDEN_SPAWNING
- Mappings:
Namespace Name Mixin selector named DO_WARDEN_SPAWNING
Lnet/minecraft/world/GameRules;DO_WARDEN_SPAWNING:Lnet/minecraft/world/GameRules$Key;
intermediary field_38975
Lnet/minecraft/class_1928;field_38975:Lnet/minecraft/class_1928$class_4313;
official N
Ldhd;N:Ldhd$e;
-
FORGIVE_DEAD_PLAYERS
- Mappings:
Namespace Name Mixin selector named FORGIVE_DEAD_PLAYERS
Lnet/minecraft/world/GameRules;FORGIVE_DEAD_PLAYERS:Lnet/minecraft/world/GameRules$Key;
intermediary field_25401
Lnet/minecraft/class_1928;field_25401:Lnet/minecraft/class_1928$class_4313;
official O
Ldhd;O:Ldhd$e;
-
UNIVERSAL_ANGER
- Mappings:
Namespace Name Mixin selector named UNIVERSAL_ANGER
Lnet/minecraft/world/GameRules;UNIVERSAL_ANGER:Lnet/minecraft/world/GameRules$Key;
intermediary field_25402
Lnet/minecraft/class_1928;field_25402:Lnet/minecraft/class_1928$class_4313;
official P
Ldhd;P:Ldhd$e;
-
PLAYERS_SLEEPING_PERCENTAGE
- Mappings:
Namespace Name Mixin selector named PLAYERS_SLEEPING_PERCENTAGE
Lnet/minecraft/world/GameRules;PLAYERS_SLEEPING_PERCENTAGE:Lnet/minecraft/world/GameRules$Key;
intermediary field_28357
Lnet/minecraft/class_1928;field_28357:Lnet/minecraft/class_1928$class_4313;
official Q
Ldhd;Q:Ldhd$e;
-
BLOCK_EXPLOSION_DROP_DECAY
- Mappings:
Namespace Name Mixin selector named BLOCK_EXPLOSION_DROP_DECAY
Lnet/minecraft/world/GameRules;BLOCK_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/GameRules$Key;
intermediary field_40880
Lnet/minecraft/class_1928;field_40880:Lnet/minecraft/class_1928$class_4313;
official R
Ldhd;R:Ldhd$e;
-
MOB_EXPLOSION_DROP_DECAY
- Mappings:
Namespace Name Mixin selector named MOB_EXPLOSION_DROP_DECAY
Lnet/minecraft/world/GameRules;MOB_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/GameRules$Key;
intermediary field_40881
Lnet/minecraft/class_1928;field_40881:Lnet/minecraft/class_1928$class_4313;
official S
Ldhd;S:Ldhd$e;
-
TNT_EXPLOSION_DROP_DECAY
- Mappings:
Namespace Name Mixin selector named TNT_EXPLOSION_DROP_DECAY
Lnet/minecraft/world/GameRules;TNT_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/GameRules$Key;
intermediary field_40882
Lnet/minecraft/class_1928;field_40882:Lnet/minecraft/class_1928$class_4313;
official T
Ldhd;T:Ldhd$e;
-
SNOW_ACCUMULATION_HEIGHT
- Mappings:
Namespace Name Mixin selector named SNOW_ACCUMULATION_HEIGHT
Lnet/minecraft/world/GameRules;SNOW_ACCUMULATION_HEIGHT:Lnet/minecraft/world/GameRules$Key;
intermediary field_40883
Lnet/minecraft/class_1928;field_40883:Lnet/minecraft/class_1928$class_4313;
official U
Ldhd;U:Ldhd$e;
-
WATER_SOURCE_CONVERSION
- Mappings:
Namespace Name Mixin selector named WATER_SOURCE_CONVERSION
Lnet/minecraft/world/GameRules;WATER_SOURCE_CONVERSION:Lnet/minecraft/world/GameRules$Key;
intermediary field_40884
Lnet/minecraft/class_1928;field_40884:Lnet/minecraft/class_1928$class_4313;
official V
Ldhd;V:Ldhd$e;
-
LAVA_SOURCE_CONVERSION
- Mappings:
Namespace Name Mixin selector named LAVA_SOURCE_CONVERSION
Lnet/minecraft/world/GameRules;LAVA_SOURCE_CONVERSION:Lnet/minecraft/world/GameRules$Key;
intermediary field_40885
Lnet/minecraft/class_1928;field_40885:Lnet/minecraft/class_1928$class_4313;
official W
Ldhd;W:Ldhd$e;
-
GLOBAL_SOUND_EVENTS
- Mappings:
Namespace Name Mixin selector named GLOBAL_SOUND_EVENTS
Lnet/minecraft/world/GameRules;GLOBAL_SOUND_EVENTS:Lnet/minecraft/world/GameRules$Key;
intermediary field_40886
Lnet/minecraft/class_1928;field_40886:Lnet/minecraft/class_1928$class_4313;
official X
Ldhd;X:Ldhd$e;
-
DO_VINES_SPREAD
- Mappings:
Namespace Name Mixin selector named DO_VINES_SPREAD
Lnet/minecraft/world/GameRules;DO_VINES_SPREAD:Lnet/minecraft/world/GameRules$Key;
intermediary field_42474
Lnet/minecraft/class_1928;field_42474:Lnet/minecraft/class_1928$class_4313;
official Y
Ldhd;Y:Ldhd$e;
-
ENDER_PEARLS_VANISH_ON_DEATH
- Mappings:
Namespace Name Mixin selector named ENDER_PEARLS_VANISH_ON_DEATH
Lnet/minecraft/world/GameRules;ENDER_PEARLS_VANISH_ON_DEATH:Lnet/minecraft/world/GameRules$Key;
intermediary field_46176
Lnet/minecraft/class_1928;field_46176:Lnet/minecraft/class_1928$class_4313;
official Z
Ldhd;Z:Ldhd$e;
-
MINECART_MAX_SPEED
- Mappings:
Namespace Name Mixin selector named MINECART_MAX_SPEED
Lnet/minecraft/world/GameRules;MINECART_MAX_SPEED:Lnet/minecraft/world/GameRules$Key;
intermediary field_52614
Lnet/minecraft/class_1928;field_52614:Lnet/minecraft/class_1928$class_4313;
official aa
Ldhd;aa:Ldhd$e;
-
SPAWN_CHUNK_RADIUS
- Mappings:
Namespace Name Mixin selector named SPAWN_CHUNK_RADIUS
Lnet/minecraft/world/GameRules;SPAWN_CHUNK_RADIUS:Lnet/minecraft/world/GameRules$Key;
intermediary field_48374
Lnet/minecraft/class_1928;field_48374:Lnet/minecraft/class_1928$class_4313;
official ab
Ldhd;ab:Ldhd$e;
-
rules
- Mappings:
Namespace Name Mixin selector named rules
Lnet/minecraft/world/GameRules;rules:Ljava/util/Map;
intermediary field_9196
Lnet/minecraft/class_1928;field_9196:Ljava/util/Map;
official ae
Ldhd;ae:Ljava/util/Map;
-
enabledFeatures
- Mappings:
Namespace Name Mixin selector named enabledFeatures
Lnet/minecraft/world/GameRules;enabledFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary field_52615
Lnet/minecraft/class_1928;field_52615:Lnet/minecraft/class_7699;
official af
Ldhd;af:Lcss;
-
-
Constructor Details
-
GameRules
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/GameRules;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;Lcom/mojang/serialization/DynamicLike;)V
intermediary <init>
Lnet/minecraft/class_1928;<init>(Lnet/minecraft/class_7699;Lcom/mojang/serialization/DynamicLike;)V
official <init>
Ldhd;<init>(Lcss;Lcom/mojang/serialization/DynamicLike;)V
-
GameRules
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/GameRules;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;)V
intermediary <init>
Lnet/minecraft/class_1928;<init>(Lnet/minecraft/class_7699;)V
official <init>
Ldhd;<init>(Lcss;)V
-
GameRules
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/GameRules;<init>(Ljava/util/Map;Lnet/minecraft/resource/featuretoggle/FeatureSet;)V
intermediary <init>
Lnet/minecraft/class_1928;<init>(Ljava/util/Map;Lnet/minecraft/class_7699;)V
official <init>
Ldhd;<init>(Ljava/util/Map;Lcss;)V
-
-
Method Details
-
register
private static <T extends GameRules.Rule<T>> GameRules.Key<T> register(String name, GameRules.Category category, GameRules.Type<T> type) - Mappings:
Namespace Name Mixin selector named register
Lnet/minecraft/world/GameRules;register(Ljava/lang/String;Lnet/minecraft/world/GameRules$Category;Lnet/minecraft/world/GameRules$Type;)Lnet/minecraft/world/GameRules$Key;
intermediary method_8359
Lnet/minecraft/class_1928;method_8359(Ljava/lang/String;Lnet/minecraft/class_1928$class_5198;Lnet/minecraft/class_1928$class_4314;)Lnet/minecraft/class_1928$class_4313;
official a
Ldhd;a(Ljava/lang/String;Ldhd$b;Ldhd$f;)Ldhd$e;
-
streamAllRules
private static Stream<Map.Entry<GameRules.Key<?>,GameRules.Type<?>>> streamAllRules(FeatureSet enabledFeatures) - Mappings:
Namespace Name Mixin selector named streamAllRules
Lnet/minecraft/world/GameRules;streamAllRules(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Ljava/util/stream/Stream;
intermediary method_61725
Lnet/minecraft/class_1928;method_61725(Lnet/minecraft/class_7699;)Ljava/util/stream/Stream;
official b
Ldhd;b(Lcss;)Ljava/util/stream/Stream;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/world/GameRules;get(Lnet/minecraft/world/GameRules$Key;)Lnet/minecraft/world/GameRules$Rule;
intermediary method_20746
Lnet/minecraft/class_1928;method_20746(Lnet/minecraft/class_1928$class_4313;)Lnet/minecraft/class_1928$class_4315;
official a
Ldhd;a(Ldhd$e;)Ldhd$g;
-
toNbt
- Mappings:
Namespace Name Mixin selector named toNbt
Lnet/minecraft/world/GameRules;toNbt()Lnet/minecraft/nbt/NbtCompound;
intermediary method_8358
Lnet/minecraft/class_1928;method_8358()Lnet/minecraft/class_2487;
official a
Ldhd;a()Lux;
-
load
private void load(com.mojang.serialization.DynamicLike<?> values) - Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/world/GameRules;load(Lcom/mojang/serialization/DynamicLike;)V
intermediary method_8357
Lnet/minecraft/class_1928;method_8357(Lcom/mojang/serialization/DynamicLike;)V
official a
Ldhd;a(Lcom/mojang/serialization/DynamicLike;)V
-
copy
- Mappings:
Namespace Name Mixin selector named copy
Lnet/minecraft/world/GameRules;copy(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/world/GameRules;
intermediary method_27325
Lnet/minecraft/class_1928;method_27325(Lnet/minecraft/class_7699;)Lnet/minecraft/class_1928;
official a
Ldhd;a(Lcss;)Ldhd;
-
accept
Make the visitor visit all registered game rules.The visitation involves calling both
GameRules.Visitor.visit(GameRules.Key, GameRules.Type)
andvisitX
for every game rule, where X is the current rule's concrete type such as a boolean.- Mappings:
Namespace Name Mixin selector named accept
Lnet/minecraft/world/GameRules;accept(Lnet/minecraft/world/GameRules$Visitor;)V
intermediary method_20744
Lnet/minecraft/class_1928;method_20744(Lnet/minecraft/class_1928$class_4311;)V
official a
Ldhd;a(Ldhd$c;)V
-
accept
private <T extends GameRules.Rule<T>> void accept(GameRules.Visitor visitor, GameRules.Key<?> key, GameRules.Type<?> type) - Mappings:
Namespace Name Mixin selector named accept
Lnet/minecraft/world/GameRules;accept(Lnet/minecraft/world/GameRules$Visitor;Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)V
intermediary method_20745
Lnet/minecraft/class_1928;method_20745(Lnet/minecraft/class_1928$class_4311;Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928$class_4314;)V
official a
Ldhd;a(Ldhd$c;Ldhd$e;Ldhd$f;)V
-
setAllValues
- Mappings:
Namespace Name Mixin selector named setAllValues
Lnet/minecraft/world/GameRules;setAllValues(Lnet/minecraft/world/GameRules;Lnet/minecraft/server/MinecraftServer;)V
intermediary method_27322
Lnet/minecraft/class_1928;method_27322(Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)V
official a
Ldhd;a(Ldhd;Lnet/minecraft/server/MinecraftServer;)V
-
setValue
private <T extends GameRules.Rule<T>> void setValue(GameRules.Key<T> key, GameRules rules, @Nullable @Nullable MinecraftServer server) - Mappings:
Namespace Name Mixin selector named setValue
Lnet/minecraft/world/GameRules;setValue(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules;Lnet/minecraft/server/MinecraftServer;)V
intermediary method_27321
Lnet/minecraft/class_1928;method_27321(Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)V
official a
Ldhd;a(Ldhd$e;Ldhd;Lnet/minecraft/server/MinecraftServer;)V
-
getBoolean
- Mappings:
Namespace Name Mixin selector named getBoolean
Lnet/minecraft/world/GameRules;getBoolean(Lnet/minecraft/world/GameRules$Key;)Z
intermediary method_8355
Lnet/minecraft/class_1928;method_8355(Lnet/minecraft/class_1928$class_4313;)Z
official b
Ldhd;b(Ldhd$e;)Z
-
getInt
- Mappings:
Namespace Name Mixin selector named getInt
Lnet/minecraft/world/GameRules;getInt(Lnet/minecraft/world/GameRules$Key;)I
intermediary method_8356
Lnet/minecraft/class_1928;method_8356(Lnet/minecraft/class_1928$class_4313;)I
official c
Ldhd;c(Ldhd$e;)I
-