Class GameRules

java.lang.Object
net.minecraft.world.GameRules

public class GameRules extends Object
Mappings:
Namespace Name
official cfw
intermediary net/minecraft/class_1928
named net/minecraft/world/GameRules
  • Field Details

    • DEFAULT_RANDOM_TICK_SPEED

      public static final int DEFAULT_RANDOM_TICK_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lcfw;a:I
      intermediary field_30963 Lnet/minecraft/class_1928;field_30963:I
      named DEFAULT_RANDOM_TICK_SPEED Lnet/minecraft/world/GameRules;DEFAULT_RANDOM_TICK_SPEED:I
    • LOGGER

      static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official L Lcfw;L:Lorg/slf4j/Logger;
      intermediary field_19410 Lnet/minecraft/class_1928;field_19410:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/world/GameRules;LOGGER:Lorg/slf4j/Logger;
    • RULE_TYPES

      private static final Map<GameRules.Key<?>,GameRules.Type<?>> RULE_TYPES
      Mappings:
      Namespace Name Mixin selector
      official M Lcfw;M:Ljava/util/Map;
      intermediary field_9197 Lnet/minecraft/class_1928;field_9197:Ljava/util/Map;
      named RULE_TYPES Lnet/minecraft/world/GameRules;RULE_TYPES:Ljava/util/Map;
    • DO_FIRE_TICK

      public static final GameRules.Key<GameRules.BooleanRule> DO_FIRE_TICK
      Mappings:
      Namespace Name Mixin selector
      official b Lcfw;b:Lcfw$e;
      intermediary field_19387 Lnet/minecraft/class_1928;field_19387:Lnet/minecraft/class_1928$class_4313;
      named DO_FIRE_TICK Lnet/minecraft/world/GameRules;DO_FIRE_TICK:Lnet/minecraft/world/GameRules$Key;
    • DO_MOB_GRIEFING

      public static final GameRules.Key<GameRules.BooleanRule> 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
      official c Lcfw;c:Lcfw$e;
      intermediary field_19388 Lnet/minecraft/class_1928;field_19388:Lnet/minecraft/class_1928$class_4313;
      named DO_MOB_GRIEFING Lnet/minecraft/world/GameRules;DO_MOB_GRIEFING:Lnet/minecraft/world/GameRules$Key;
    • KEEP_INVENTORY

      public static final GameRules.Key<GameRules.BooleanRule> KEEP_INVENTORY
      A game rule which regulates whether player inventories should be persist through respawning.
      Mappings:
      Namespace Name Mixin selector
      official d Lcfw;d:Lcfw$e;
      intermediary field_19389 Lnet/minecraft/class_1928;field_19389:Lnet/minecraft/class_1928$class_4313;
      named KEEP_INVENTORY Lnet/minecraft/world/GameRules;KEEP_INVENTORY:Lnet/minecraft/world/GameRules$Key;
    • DO_MOB_SPAWNING

      public static final GameRules.Key<GameRules.BooleanRule> DO_MOB_SPAWNING
      A game rule which regulates whether mobs can spawn naturally.
      Mappings:
      Namespace Name Mixin selector
      official e Lcfw;e:Lcfw$e;
      intermediary field_19390 Lnet/minecraft/class_1928;field_19390:Lnet/minecraft/class_1928$class_4313;
      named DO_MOB_SPAWNING Lnet/minecraft/world/GameRules;DO_MOB_SPAWNING:Lnet/minecraft/world/GameRules$Key;
    • DO_MOB_LOOT

      public static final GameRules.Key<GameRules.BooleanRule> DO_MOB_LOOT
      A game rule which regulates whether mobs should drop loot on death.
      Mappings:
      Namespace Name Mixin selector
      official f Lcfw;f:Lcfw$e;
      intermediary field_19391 Lnet/minecraft/class_1928;field_19391:Lnet/minecraft/class_1928$class_4313;
      named DO_MOB_LOOT Lnet/minecraft/world/GameRules;DO_MOB_LOOT:Lnet/minecraft/world/GameRules$Key;
    • DO_TILE_DROPS

      public static final GameRules.Key<GameRules.BooleanRule> DO_TILE_DROPS
      A game rule which regulates whether blocks should drop their items when broken.
      Mappings:
      Namespace Name Mixin selector
      official g Lcfw;g:Lcfw$e;
      intermediary field_19392 Lnet/minecraft/class_1928;field_19392:Lnet/minecraft/class_1928$class_4313;
      named DO_TILE_DROPS Lnet/minecraft/world/GameRules;DO_TILE_DROPS:Lnet/minecraft/world/GameRules$Key;
    • DO_ENTITY_DROPS

      public static final GameRules.Key<GameRules.BooleanRule> DO_ENTITY_DROPS
      Mappings:
      Namespace Name Mixin selector
      official h Lcfw;h:Lcfw$e;
      intermediary field_19393 Lnet/minecraft/class_1928;field_19393:Lnet/minecraft/class_1928$class_4313;
      named DO_ENTITY_DROPS Lnet/minecraft/world/GameRules;DO_ENTITY_DROPS:Lnet/minecraft/world/GameRules$Key;
    • COMMAND_BLOCK_OUTPUT

      public static final GameRules.Key<GameRules.BooleanRule> COMMAND_BLOCK_OUTPUT
      Mappings:
      Namespace Name Mixin selector
      official i Lcfw;i:Lcfw$e;
      intermediary field_19394 Lnet/minecraft/class_1928;field_19394:Lnet/minecraft/class_1928$class_4313;
      named COMMAND_BLOCK_OUTPUT Lnet/minecraft/world/GameRules;COMMAND_BLOCK_OUTPUT:Lnet/minecraft/world/GameRules$Key;
    • NATURAL_REGENERATION

      public static final GameRules.Key<GameRules.BooleanRule> NATURAL_REGENERATION
      Mappings:
      Namespace Name Mixin selector
      official j Lcfw;j:Lcfw$e;
      intermediary field_19395 Lnet/minecraft/class_1928;field_19395:Lnet/minecraft/class_1928$class_4313;
      named NATURAL_REGENERATION Lnet/minecraft/world/GameRules;NATURAL_REGENERATION:Lnet/minecraft/world/GameRules$Key;
    • DO_DAYLIGHT_CYCLE

      public static final GameRules.Key<GameRules.BooleanRule> DO_DAYLIGHT_CYCLE
      Mappings:
      Namespace Name Mixin selector
      official k Lcfw;k:Lcfw$e;
      intermediary field_19396 Lnet/minecraft/class_1928;field_19396:Lnet/minecraft/class_1928$class_4313;
      named DO_DAYLIGHT_CYCLE Lnet/minecraft/world/GameRules;DO_DAYLIGHT_CYCLE:Lnet/minecraft/world/GameRules$Key;
    • LOG_ADMIN_COMMANDS

      public static final GameRules.Key<GameRules.BooleanRule> LOG_ADMIN_COMMANDS
      Mappings:
      Namespace Name Mixin selector
      official l Lcfw;l:Lcfw$e;
      intermediary field_19397 Lnet/minecraft/class_1928;field_19397:Lnet/minecraft/class_1928$class_4313;
      named LOG_ADMIN_COMMANDS Lnet/minecraft/world/GameRules;LOG_ADMIN_COMMANDS:Lnet/minecraft/world/GameRules$Key;
    • SHOW_DEATH_MESSAGES

      public static final GameRules.Key<GameRules.BooleanRule> SHOW_DEATH_MESSAGES
      Mappings:
      Namespace Name Mixin selector
      official m Lcfw;m:Lcfw$e;
      intermediary field_19398 Lnet/minecraft/class_1928;field_19398:Lnet/minecraft/class_1928$class_4313;
      named SHOW_DEATH_MESSAGES Lnet/minecraft/world/GameRules;SHOW_DEATH_MESSAGES:Lnet/minecraft/world/GameRules$Key;
    • RANDOM_TICK_SPEED

      public static final GameRules.Key<GameRules.IntRule> RANDOM_TICK_SPEED
      Mappings:
      Namespace Name Mixin selector
      official n Lcfw;n:Lcfw$e;
      intermediary field_19399 Lnet/minecraft/class_1928;field_19399:Lnet/minecraft/class_1928$class_4313;
      named RANDOM_TICK_SPEED Lnet/minecraft/world/GameRules;RANDOM_TICK_SPEED:Lnet/minecraft/world/GameRules$Key;
    • SEND_COMMAND_FEEDBACK

      public static final GameRules.Key<GameRules.BooleanRule> SEND_COMMAND_FEEDBACK
      Mappings:
      Namespace Name Mixin selector
      official o Lcfw;o:Lcfw$e;
      intermediary field_19400 Lnet/minecraft/class_1928;field_19400:Lnet/minecraft/class_1928$class_4313;
      named SEND_COMMAND_FEEDBACK Lnet/minecraft/world/GameRules;SEND_COMMAND_FEEDBACK:Lnet/minecraft/world/GameRules$Key;
    • REDUCED_DEBUG_INFO

      public static final GameRules.Key<GameRules.BooleanRule> 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
      official p Lcfw;p:Lcfw$e;
      intermediary field_19401 Lnet/minecraft/class_1928;field_19401:Lnet/minecraft/class_1928$class_4313;
      named REDUCED_DEBUG_INFO Lnet/minecraft/world/GameRules;REDUCED_DEBUG_INFO:Lnet/minecraft/world/GameRules$Key;
    • SPECTATORS_GENERATE_CHUNKS

      public static final GameRules.Key<GameRules.BooleanRule> SPECTATORS_GENERATE_CHUNKS
      Mappings:
      Namespace Name Mixin selector
      official q Lcfw;q:Lcfw$e;
      intermediary field_19402 Lnet/minecraft/class_1928;field_19402:Lnet/minecraft/class_1928$class_4313;
      named SPECTATORS_GENERATE_CHUNKS Lnet/minecraft/world/GameRules;SPECTATORS_GENERATE_CHUNKS:Lnet/minecraft/world/GameRules$Key;
    • SPAWN_RADIUS

      public static final GameRules.Key<GameRules.IntRule> SPAWN_RADIUS
      Mappings:
      Namespace Name Mixin selector
      official r Lcfw;r:Lcfw$e;
      intermediary field_19403 Lnet/minecraft/class_1928;field_19403:Lnet/minecraft/class_1928$class_4313;
      named SPAWN_RADIUS Lnet/minecraft/world/GameRules;SPAWN_RADIUS:Lnet/minecraft/world/GameRules$Key;
    • DISABLE_ELYTRA_MOVEMENT_CHECK

      public static final GameRules.Key<GameRules.BooleanRule> DISABLE_ELYTRA_MOVEMENT_CHECK
      Mappings:
      Namespace Name Mixin selector
      official s Lcfw;s:Lcfw$e;
      intermediary field_19404 Lnet/minecraft/class_1928;field_19404:Lnet/minecraft/class_1928$class_4313;
      named DISABLE_ELYTRA_MOVEMENT_CHECK Lnet/minecraft/world/GameRules;DISABLE_ELYTRA_MOVEMENT_CHECK:Lnet/minecraft/world/GameRules$Key;
    • MAX_ENTITY_CRAMMING

      public static final GameRules.Key<GameRules.IntRule> 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
      official t Lcfw;t:Lcfw$e;
      intermediary field_19405 Lnet/minecraft/class_1928;field_19405:Lnet/minecraft/class_1928$class_4313;
      named MAX_ENTITY_CRAMMING Lnet/minecraft/world/GameRules;MAX_ENTITY_CRAMMING:Lnet/minecraft/world/GameRules$Key;
    • DO_WEATHER_CYCLE

      public static final GameRules.Key<GameRules.BooleanRule> DO_WEATHER_CYCLE
      Mappings:
      Namespace Name Mixin selector
      official u Lcfw;u:Lcfw$e;
      intermediary field_19406 Lnet/minecraft/class_1928;field_19406:Lnet/minecraft/class_1928$class_4313;
      named DO_WEATHER_CYCLE Lnet/minecraft/world/GameRules;DO_WEATHER_CYCLE:Lnet/minecraft/world/GameRules$Key;
    • DO_LIMITED_CRAFTING

      public static final GameRules.Key<GameRules.BooleanRule> DO_LIMITED_CRAFTING
      Mappings:
      Namespace Name Mixin selector
      official v Lcfw;v:Lcfw$e;
      intermediary field_19407 Lnet/minecraft/class_1928;field_19407:Lnet/minecraft/class_1928$class_4313;
      named DO_LIMITED_CRAFTING Lnet/minecraft/world/GameRules;DO_LIMITED_CRAFTING:Lnet/minecraft/world/GameRules$Key;
    • MAX_COMMAND_CHAIN_LENGTH

      public static final GameRules.Key<GameRules.IntRule> MAX_COMMAND_CHAIN_LENGTH
      Mappings:
      Namespace Name Mixin selector
      official w Lcfw;w:Lcfw$e;
      intermediary field_19408 Lnet/minecraft/class_1928;field_19408:Lnet/minecraft/class_1928$class_4313;
      named MAX_COMMAND_CHAIN_LENGTH Lnet/minecraft/world/GameRules;MAX_COMMAND_CHAIN_LENGTH:Lnet/minecraft/world/GameRules$Key;
    • ANNOUNCE_ADVANCEMENTS

      public static final GameRules.Key<GameRules.BooleanRule> ANNOUNCE_ADVANCEMENTS
      A game rule which regulates whether a player's advancements should be announced in chat.
      Mappings:
      Namespace Name Mixin selector
      official x Lcfw;x:Lcfw$e;
      intermediary field_19409 Lnet/minecraft/class_1928;field_19409:Lnet/minecraft/class_1928$class_4313;
      named ANNOUNCE_ADVANCEMENTS Lnet/minecraft/world/GameRules;ANNOUNCE_ADVANCEMENTS:Lnet/minecraft/world/GameRules$Key;
    • DISABLE_RAIDS

      public static final GameRules.Key<GameRules.BooleanRule> 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
      official y Lcfw;y:Lcfw$e;
      intermediary field_19422 Lnet/minecraft/class_1928;field_19422:Lnet/minecraft/class_1928$class_4313;
      named DISABLE_RAIDS Lnet/minecraft/world/GameRules;DISABLE_RAIDS:Lnet/minecraft/world/GameRules$Key;
    • DO_INSOMNIA

      public static final GameRules.Key<GameRules.BooleanRule> DO_INSOMNIA
      Mappings:
      Namespace Name Mixin selector
      official z Lcfw;z:Lcfw$e;
      intermediary field_20637 Lnet/minecraft/class_1928;field_20637:Lnet/minecraft/class_1928$class_4313;
      named DO_INSOMNIA Lnet/minecraft/world/GameRules;DO_INSOMNIA:Lnet/minecraft/world/GameRules$Key;
    • DO_IMMEDIATE_RESPAWN

      public static final GameRules.Key<GameRules.BooleanRule> DO_IMMEDIATE_RESPAWN
      A game rule which regulates whether a player should immediately respawn upon death.
      Mappings:
      Namespace Name Mixin selector
      official A Lcfw;A:Lcfw$e;
      intermediary field_20638 Lnet/minecraft/class_1928;field_20638:Lnet/minecraft/class_1928$class_4313;
      named DO_IMMEDIATE_RESPAWN Lnet/minecraft/world/GameRules;DO_IMMEDIATE_RESPAWN:Lnet/minecraft/world/GameRules$Key;
    • DROWNING_DAMAGE

      public static final GameRules.Key<GameRules.BooleanRule> DROWNING_DAMAGE
      Mappings:
      Namespace Name Mixin selector
      official B Lcfw;B:Lcfw$e;
      intermediary field_20634 Lnet/minecraft/class_1928;field_20634:Lnet/minecraft/class_1928$class_4313;
      named DROWNING_DAMAGE Lnet/minecraft/world/GameRules;DROWNING_DAMAGE:Lnet/minecraft/world/GameRules$Key;
    • FALL_DAMAGE

      public static final GameRules.Key<GameRules.BooleanRule> FALL_DAMAGE
      Mappings:
      Namespace Name Mixin selector
      official C Lcfw;C:Lcfw$e;
      intermediary field_20635 Lnet/minecraft/class_1928;field_20635:Lnet/minecraft/class_1928$class_4313;
      named FALL_DAMAGE Lnet/minecraft/world/GameRules;FALL_DAMAGE:Lnet/minecraft/world/GameRules$Key;
    • FIRE_DAMAGE

      public static final GameRules.Key<GameRules.BooleanRule> FIRE_DAMAGE
      Mappings:
      Namespace Name Mixin selector
      official D Lcfw;D:Lcfw$e;
      intermediary field_20636 Lnet/minecraft/class_1928;field_20636:Lnet/minecraft/class_1928$class_4313;
      named FIRE_DAMAGE Lnet/minecraft/world/GameRules;FIRE_DAMAGE:Lnet/minecraft/world/GameRules$Key;
    • FREEZE_DAMAGE

      public static final GameRules.Key<GameRules.BooleanRule> FREEZE_DAMAGE
      Mappings:
      Namespace Name Mixin selector
      official E Lcfw;E:Lcfw$e;
      intermediary field_28044 Lnet/minecraft/class_1928;field_28044:Lnet/minecraft/class_1928$class_4313;
      named FREEZE_DAMAGE Lnet/minecraft/world/GameRules;FREEZE_DAMAGE:Lnet/minecraft/world/GameRules$Key;
    • DO_PATROL_SPAWNING

      public static final GameRules.Key<GameRules.BooleanRule> DO_PATROL_SPAWNING
      Mappings:
      Namespace Name Mixin selector
      official F Lcfw;F:Lcfw$e;
      intermediary field_21831 Lnet/minecraft/class_1928;field_21831:Lnet/minecraft/class_1928$class_4313;
      named DO_PATROL_SPAWNING Lnet/minecraft/world/GameRules;DO_PATROL_SPAWNING:Lnet/minecraft/world/GameRules$Key;
    • DO_TRADER_SPAWNING

      public static final GameRules.Key<GameRules.BooleanRule> DO_TRADER_SPAWNING
      Mappings:
      Namespace Name Mixin selector
      official G Lcfw;G:Lcfw$e;
      intermediary field_21832 Lnet/minecraft/class_1928;field_21832:Lnet/minecraft/class_1928$class_4313;
      named DO_TRADER_SPAWNING Lnet/minecraft/world/GameRules;DO_TRADER_SPAWNING:Lnet/minecraft/world/GameRules$Key;
    • DO_WARDEN_SPAWNING

      public static final GameRules.Key<GameRules.BooleanRule> DO_WARDEN_SPAWNING
      Mappings:
      Namespace Name Mixin selector
      official H Lcfw;H:Lcfw$e;
      intermediary field_38975 Lnet/minecraft/class_1928;field_38975:Lnet/minecraft/class_1928$class_4313;
      named DO_WARDEN_SPAWNING Lnet/minecraft/world/GameRules;DO_WARDEN_SPAWNING:Lnet/minecraft/world/GameRules$Key;
    • FORGIVE_DEAD_PLAYERS

      public static final GameRules.Key<GameRules.BooleanRule> FORGIVE_DEAD_PLAYERS
      Mappings:
      Namespace Name Mixin selector
      official I Lcfw;I:Lcfw$e;
      intermediary field_25401 Lnet/minecraft/class_1928;field_25401:Lnet/minecraft/class_1928$class_4313;
      named FORGIVE_DEAD_PLAYERS Lnet/minecraft/world/GameRules;FORGIVE_DEAD_PLAYERS:Lnet/minecraft/world/GameRules$Key;
    • UNIVERSAL_ANGER

      public static final GameRules.Key<GameRules.BooleanRule> UNIVERSAL_ANGER
      Mappings:
      Namespace Name Mixin selector
      official J Lcfw;J:Lcfw$e;
      intermediary field_25402 Lnet/minecraft/class_1928;field_25402:Lnet/minecraft/class_1928$class_4313;
      named UNIVERSAL_ANGER Lnet/minecraft/world/GameRules;UNIVERSAL_ANGER:Lnet/minecraft/world/GameRules$Key;
    • PLAYERS_SLEEPING_PERCENTAGE

      public static final GameRules.Key<GameRules.IntRule> PLAYERS_SLEEPING_PERCENTAGE
      Mappings:
      Namespace Name Mixin selector
      official K Lcfw;K:Lcfw$e;
      intermediary field_28357 Lnet/minecraft/class_1928;field_28357:Lnet/minecraft/class_1928$class_4313;
      named PLAYERS_SLEEPING_PERCENTAGE Lnet/minecraft/world/GameRules;PLAYERS_SLEEPING_PERCENTAGE:Lnet/minecraft/world/GameRules$Key;
    • rules

      private final Map<GameRules.Key<?>,GameRules.Rule<?>> rules
      Mappings:
      Namespace Name Mixin selector
      official N Lcfw;N:Ljava/util/Map;
      intermediary field_9196 Lnet/minecraft/class_1928;field_9196:Ljava/util/Map;
      named rules Lnet/minecraft/world/GameRules;rules:Ljava/util/Map;
  • Constructor Details

    • GameRules

      public GameRules(com.mojang.serialization.DynamicLike<?> dynamicLike)
    • GameRules

      public GameRules()
    • GameRules

      private GameRules(Map<GameRules.Key<?>,GameRules.Rule<?>> rules)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcfw;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_1928;<init>(Ljava/util/Map;)V
      named <init> Lnet/minecraft/world/GameRules;<init>(Ljava/util/Map;)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
      official a Lcfw;a(Ljava/lang/String;Lcfw$b;Lcfw$f;)Lcfw$e;
      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;
      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;
    • get

      public <T extends GameRules.Rule<T>> T get(GameRules.Key<T> key)
      Mappings:
      Namespace Name Mixin selector
      official a Lcfw;a(Lcfw$e;)Lcfw$g;
      intermediary method_20746 Lnet/minecraft/class_1928;method_20746(Lnet/minecraft/class_1928$class_4313;)Lnet/minecraft/class_1928$class_4315;
      named get Lnet/minecraft/world/GameRules;get(Lnet/minecraft/world/GameRules$Key;)Lnet/minecraft/world/GameRules$Rule;
    • toNbt

      public NbtCompound toNbt()
      Mappings:
      Namespace Name Mixin selector
      official a Lcfw;a()Lpj;
      intermediary method_8358 Lnet/minecraft/class_1928;method_8358()Lnet/minecraft/class_2487;
      named toNbt Lnet/minecraft/world/GameRules;toNbt()Lnet/minecraft/nbt/NbtCompound;
    • load

      private void load(com.mojang.serialization.DynamicLike<?> dynamicLike)
      Mappings:
      Namespace Name Mixin selector
      official a Lcfw;a(Lcom/mojang/serialization/DynamicLike;)V
      intermediary method_8357 Lnet/minecraft/class_1928;method_8357(Lcom/mojang/serialization/DynamicLike;)V
      named load Lnet/minecraft/world/GameRules;load(Lcom/mojang/serialization/DynamicLike;)V
    • copy

      public GameRules copy()
      Mappings:
      Namespace Name Mixin selector
      official b Lcfw;b()Lcfw;
      intermediary method_27325 Lnet/minecraft/class_1928;method_27325()Lnet/minecraft/class_1928;
      named copy Lnet/minecraft/world/GameRules;copy()Lnet/minecraft/world/GameRules;
    • accept

      public static void accept(GameRules.Visitor visitor)
      Make the visitor visit all registered game rules.

      The visitation involves calling both GameRules.Visitor.visit(GameRules.Key, GameRules.Type) and visitX for every game rule, where X is the current rule's concrete type such as a boolean.

      Mappings:
      Namespace Name Mixin selector
      official a Lcfw;a(Lcfw$c;)V
      intermediary method_20744 Lnet/minecraft/class_1928;method_20744(Lnet/minecraft/class_1928$class_4311;)V
      named accept Lnet/minecraft/world/GameRules;accept(Lnet/minecraft/world/GameRules$Visitor;)V
    • accept

      private static <T extends GameRules.Rule<T>> void accept(GameRules.Visitor consumer, GameRules.Key<?> key, GameRules.Type<?> type)
      Mappings:
      Namespace Name Mixin selector
      official a Lcfw;a(Lcfw$c;Lcfw$e;Lcfw$f;)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
      named accept Lnet/minecraft/world/GameRules;accept(Lnet/minecraft/world/GameRules$Visitor;Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules$Type;)V
    • setAllValues

      public void setAllValues(GameRules rules, @Nullable @Nullable MinecraftServer server)
      Mappings:
      Namespace Name Mixin selector
      official a Lcfw;a(Lcfw;Lnet/minecraft/server/MinecraftServer;)V
      intermediary method_27322 Lnet/minecraft/class_1928;method_27322(Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)V
      named setAllValues Lnet/minecraft/world/GameRules;setAllValues(Lnet/minecraft/world/GameRules;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
      official a Lcfw;a(Lcfw$e;Lcfw;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
      named setValue Lnet/minecraft/world/GameRules;setValue(Lnet/minecraft/world/GameRules$Key;Lnet/minecraft/world/GameRules;Lnet/minecraft/server/MinecraftServer;)V
    • getBoolean

      public boolean getBoolean(GameRules.Key<GameRules.BooleanRule> rule)
      Mappings:
      Namespace Name Mixin selector
      official b Lcfw;b(Lcfw$e;)Z
      intermediary method_8355 Lnet/minecraft/class_1928;method_8355(Lnet/minecraft/class_1928$class_4313;)Z
      named getBoolean Lnet/minecraft/world/GameRules;getBoolean(Lnet/minecraft/world/GameRules$Key;)Z
    • getInt

      public int getInt(GameRules.Key<GameRules.IntRule> rule)
      Mappings:
      Namespace Name Mixin selector
      official c Lcfw;c(Lcfw$e;)I
      intermediary method_8356 Lnet/minecraft/class_1928;method_8356(Lnet/minecraft/class_1928$class_4313;)I
      named getInt Lnet/minecraft/world/GameRules;getInt(Lnet/minecraft/world/GameRules$Key;)I