diff --git a/mappings/net/minecraft/world/GameRules.mapping b/mappings/net/minecraft/world/GameRules.mapping index 448456f982..a1a95b8941 100644 --- a/mappings/net/minecraft/world/GameRules.mapping +++ b/mappings/net/minecraft/world/GameRules.mapping @@ -1,5 +1,39 @@ CLASS net/minecraft/class_1928 net/minecraft/world/GameRules + FIELD field_19388 Lnet/minecraft/class_1928$class_4313; + COMMENT A {@linkplain GameRule game rule} which regulates whether mobs can modify the world. + COMMENT + COMMENT

Generally one is expected to test this rule before an entity modifies the world. + COMMENT + COMMENT

In vanilla, this includes: + COMMENT

+ FIELD field_19389 Lnet/minecraft/class_1928$class_4313; + COMMENT A {@linkplain GameRule game rule} which regulates whether player inventories should be persist through respawning. + FIELD field_19390 Lnet/minecraft/class_1928$class_4313; + COMMENT A {@linkplain GameRule game rule} which regulates whether mobs can spawn naturally. + FIELD field_19391 Lnet/minecraft/class_1928$class_4313; + COMMENT A {@linkplain GameRule game rule} which regulates whether mobs should drop loot on death. + FIELD field_19392 Lnet/minecraft/class_1928$class_4313; + COMMENT A {@linkplain GameRule game rule} which regulates whether blocks should drop their items when broken. + FIELD field_19401 Lnet/minecraft/class_1928$class_4313; + COMMENT A {@linkplain GameRule game rule} which regulates whether clients' {@linkplain net.minecraft.client.gui.hud.DebugHud debug HUD}s show reduced information. + COMMENT + COMMENT

When the value of this rule is changed, all connected clients will be notified to update their display. + COMMENT In vanilla, this includes the visibility of coordinates on the clients' debug HUDs. + FIELD field_19405 Lnet/minecraft/class_1928$class_4313; + COMMENT A {@linkplain GameRule game rule} which regulates the number of entities that can be crammed into a block space before they incur cramming damage. + FIELD field_19409 Lnet/minecraft/class_1928$class_4313; + COMMENT A {@linkplain GameRule game rule} which regulates whether a player's advancements should be announced in chat. FIELD field_19410 LOGGER Lorg/apache/logging/log4j/Logger; + FIELD field_19422 Lnet/minecraft/class_1928$class_4313; + COMMENT A {@linkplain GameRule game rule} which regulates whether raids should occur. + COMMENT + COMMENT

If this rule is set to {@code true} while raids are occurring, the raids will be stopped. + FIELD field_20638 Lnet/minecraft/class_1928$class_4313; + COMMENT A {@linkplain GameRule game rule} which regulates whether a player should immediately respawn upon death. FIELD field_9196 rules Ljava/util/Map; FIELD field_9197 RULE_TYPES Ljava/util/Map; METHOD (Ljava/util/Map;)V @@ -30,9 +64,13 @@ CLASS net/minecraft/class_1928 net/minecraft/world/GameRules ARG 1 rule METHOD method_27321 setValue (Lnet/minecraft/class_1928$class_4313;Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)V ARG 1 key + ARG 2 rules ARG 3 server METHOD method_27322 setAllValues (Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)V + ARG 1 rules ARG 2 server + METHOD method_27323 (Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_1928$class_4313;)V + ARG 3 key METHOD method_27325 copy ()Lnet/minecraft/class_1928; METHOD method_8355 getBoolean (Lnet/minecraft/class_1928$class_4313;)Z ARG 1 rule @@ -112,14 +150,16 @@ CLASS net/minecraft/class_1928 net/minecraft/world/GameRules FIELD field_19414 argumentType Ljava/util/function/Supplier; FIELD field_19415 ruleFactory Ljava/util/function/Function; FIELD field_19416 changeCallback Ljava/util/function/BiConsumer; + FIELD field_24104 ruleAcceptor Lnet/minecraft/class_1928$class_5199; METHOD (Ljava/util/function/Supplier;Ljava/util/function/Function;Ljava/util/function/BiConsumer;Lnet/minecraft/class_1928$class_5199;)V ARG 1 argumentType ARG 2 ruleFactory ARG 3 changeCallback + ARG 4 ruleAcceptor METHOD method_20773 createRule ()Lnet/minecraft/class_1928$class_4315; METHOD method_20775 argument (Ljava/lang/String;)Lcom/mojang/brigadier/builder/RequiredArgumentBuilder; ARG 1 name - METHOD method_27336 (Lnet/minecraft/class_1928$class_4311;Lnet/minecraft/class_1928$class_4313;)V + METHOD method_27336 accept (Lnet/minecraft/class_1928$class_4311;Lnet/minecraft/class_1928$class_4313;)V ARG 1 consumer ARG 2 key CLASS class_4315 Rule