Class GameRules

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

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

    • ADVANCE_TIME

      public static final GameRule<Boolean> ADVANCE_TIME
      Mappings:
      Namespace Name Mixin selector
      named ADVANCE_TIME Lnet/minecraft/world/rule/GameRules;ADVANCE_TIME:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19396 Lnet/minecraft/class_1928;field_19396:Lnet/minecraft/class_12279;
      official a Lesn;a:Lesi;
    • ADVANCE_WEATHER

      public static final GameRule<Boolean> ADVANCE_WEATHER
      Mappings:
      Namespace Name Mixin selector
      named ADVANCE_WEATHER Lnet/minecraft/world/rule/GameRules;ADVANCE_WEATHER:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19406 Lnet/minecraft/class_1928;field_19406:Lnet/minecraft/class_12279;
      official b Lesn;b:Lesi;
    • ALLOW_ENTERING_NETHER_USING_PORTALS

      public static final GameRule<Boolean> ALLOW_ENTERING_NETHER_USING_PORTALS
      Mappings:
      Namespace Name Mixin selector
      named ALLOW_ENTERING_NETHER_USING_PORTALS Lnet/minecraft/world/rule/GameRules;ALLOW_ENTERING_NETHER_USING_PORTALS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_62435 Lnet/minecraft/class_1928;field_62435:Lnet/minecraft/class_12279;
      official c Lesn;c:Lesi;
    • DO_TILE_DROPS

      public static final GameRule<Boolean> DO_TILE_DROPS
      A
      invalid reference
      game rule
      which regulates whether blocks should drop their items when broken.
      Mappings:
      Namespace Name Mixin selector
      named DO_TILE_DROPS Lnet/minecraft/world/rule/GameRules;DO_TILE_DROPS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19392 Lnet/minecraft/class_1928;field_19392:Lnet/minecraft/class_12279;
      official d Lesn;d:Lesi;
    • BLOCK_EXPLOSION_DROP_DECAY

      public static final GameRule<Boolean> BLOCK_EXPLOSION_DROP_DECAY
      Mappings:
      Namespace Name Mixin selector
      named BLOCK_EXPLOSION_DROP_DECAY Lnet/minecraft/world/rule/GameRules;BLOCK_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/rule/GameRule;
      intermediary field_40880 Lnet/minecraft/class_1928;field_40880:Lnet/minecraft/class_12279;
      official e Lesn;e:Lesi;
    • COMMAND_BLOCKS_WORK

      public static final GameRule<Boolean> COMMAND_BLOCKS_WORK
      Mappings:
      Namespace Name Mixin selector
      named COMMAND_BLOCKS_WORK Lnet/minecraft/world/rule/GameRules;COMMAND_BLOCKS_WORK:Lnet/minecraft/world/rule/GameRule;
      intermediary field_62916 Lnet/minecraft/class_1928;field_62916:Lnet/minecraft/class_12279;
      official f Lesn;f:Lesi;
    • COMMAND_BLOCK_OUTPUT

      public static final GameRule<Boolean> COMMAND_BLOCK_OUTPUT
      Mappings:
      Namespace Name Mixin selector
      named COMMAND_BLOCK_OUTPUT Lnet/minecraft/world/rule/GameRules;COMMAND_BLOCK_OUTPUT:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19394 Lnet/minecraft/class_1928;field_19394:Lnet/minecraft/class_12279;
      official g Lesn;g:Lesi;
    • DROWNING_DAMAGE

      public static final GameRule<Boolean> DROWNING_DAMAGE
      Mappings:
      Namespace Name Mixin selector
      named DROWNING_DAMAGE Lnet/minecraft/world/rule/GameRules;DROWNING_DAMAGE:Lnet/minecraft/world/rule/GameRule;
      intermediary field_20634 Lnet/minecraft/class_1928;field_20634:Lnet/minecraft/class_12279;
      official h Lesn;h:Lesi;
    • ELYTRA_MOVEMENT_CHECK

      public static final GameRule<Boolean> ELYTRA_MOVEMENT_CHECK
      Mappings:
      Namespace Name Mixin selector
      named ELYTRA_MOVEMENT_CHECK Lnet/minecraft/world/rule/GameRules;ELYTRA_MOVEMENT_CHECK:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19404 Lnet/minecraft/class_1928;field_19404:Lnet/minecraft/class_12279;
      official i Lesn;i:Lesi;
    • ENDER_PEARLS_VANISH_ON_DEATH

      public static final GameRule<Boolean> ENDER_PEARLS_VANISH_ON_DEATH
      Mappings:
      Namespace Name Mixin selector
      named ENDER_PEARLS_VANISH_ON_DEATH Lnet/minecraft/world/rule/GameRules;ENDER_PEARLS_VANISH_ON_DEATH:Lnet/minecraft/world/rule/GameRule;
      intermediary field_46176 Lnet/minecraft/class_1928;field_46176:Lnet/minecraft/class_12279;
      official j Lesn;j:Lesi;
    • ENTITY_DROPS

      public static final GameRule<Boolean> ENTITY_DROPS
      Mappings:
      Namespace Name Mixin selector
      named ENTITY_DROPS Lnet/minecraft/world/rule/GameRules;ENTITY_DROPS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19393 Lnet/minecraft/class_1928;field_19393:Lnet/minecraft/class_12279;
      official k Lesn;k:Lesi;
    • FALL_DAMAGE

      public static final GameRule<Boolean> FALL_DAMAGE
      Mappings:
      Namespace Name Mixin selector
      named FALL_DAMAGE Lnet/minecraft/world/rule/GameRules;FALL_DAMAGE:Lnet/minecraft/world/rule/GameRule;
      intermediary field_20635 Lnet/minecraft/class_1928;field_20635:Lnet/minecraft/class_12279;
      official l Lesn;l:Lesi;
    • FIRE_DAMAGE

      public static final GameRule<Boolean> FIRE_DAMAGE
      Mappings:
      Namespace Name Mixin selector
      named FIRE_DAMAGE Lnet/minecraft/world/rule/GameRules;FIRE_DAMAGE:Lnet/minecraft/world/rule/GameRule;
      intermediary field_20636 Lnet/minecraft/class_1928;field_20636:Lnet/minecraft/class_12279;
      official m Lesn;m:Lesi;
    • FIRE_SPREAD_RADIUS_AROUND_PLAYER

      public static final GameRule<Integer> FIRE_SPREAD_RADIUS_AROUND_PLAYER
      Mappings:
      Namespace Name Mixin selector
      named FIRE_SPREAD_RADIUS_AROUND_PLAYER Lnet/minecraft/world/rule/GameRules;FIRE_SPREAD_RADIUS_AROUND_PLAYER:Lnet/minecraft/world/rule/GameRule;
      intermediary field_56559 Lnet/minecraft/class_1928;field_56559:Lnet/minecraft/class_12279;
      official n Lesn;n:Lesi;
    • FORGIVE_DEAD_PLAYERS

      public static final GameRule<Boolean> FORGIVE_DEAD_PLAYERS
      Mappings:
      Namespace Name Mixin selector
      named FORGIVE_DEAD_PLAYERS Lnet/minecraft/world/rule/GameRules;FORGIVE_DEAD_PLAYERS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_25401 Lnet/minecraft/class_1928;field_25401:Lnet/minecraft/class_12279;
      official o Lesn;o:Lesi;
    • FREEZE_DAMAGE

      public static final GameRule<Boolean> FREEZE_DAMAGE
      Mappings:
      Namespace Name Mixin selector
      named FREEZE_DAMAGE Lnet/minecraft/world/rule/GameRules;FREEZE_DAMAGE:Lnet/minecraft/world/rule/GameRule;
      intermediary field_28044 Lnet/minecraft/class_1928;field_28044:Lnet/minecraft/class_12279;
      official p Lesn;p:Lesi;
    • GLOBAL_SOUND_EVENTS

      public static final GameRule<Boolean> GLOBAL_SOUND_EVENTS
      Mappings:
      Namespace Name Mixin selector
      named GLOBAL_SOUND_EVENTS Lnet/minecraft/world/rule/GameRules;GLOBAL_SOUND_EVENTS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_40886 Lnet/minecraft/class_1928;field_40886:Lnet/minecraft/class_12279;
      official q Lesn;q:Lesi;
    • DO_IMMEDIATE_RESPAWN

      public static final GameRule<Boolean> DO_IMMEDIATE_RESPAWN
      A
      invalid reference
      game rule
      which regulates whether a player should immediately respawn upon death.
      Mappings:
      Namespace Name Mixin selector
      named DO_IMMEDIATE_RESPAWN Lnet/minecraft/world/rule/GameRules;DO_IMMEDIATE_RESPAWN:Lnet/minecraft/world/rule/GameRule;
      intermediary field_20638 Lnet/minecraft/class_1928;field_20638:Lnet/minecraft/class_12279;
      official r Lesn;r:Lesi;
    • KEEP_INVENTORY

      public static final GameRule<Boolean> KEEP_INVENTORY
      A
      invalid reference
      game rule
      which regulates whether player inventories should be persist through respawning.
      Mappings:
      Namespace Name Mixin selector
      named KEEP_INVENTORY Lnet/minecraft/world/rule/GameRules;KEEP_INVENTORY:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19389 Lnet/minecraft/class_1928;field_19389:Lnet/minecraft/class_12279;
      official s Lesn;s:Lesi;
    • LAVA_SOURCE_CONVERSION

      public static final GameRule<Boolean> LAVA_SOURCE_CONVERSION
      Mappings:
      Namespace Name Mixin selector
      named LAVA_SOURCE_CONVERSION Lnet/minecraft/world/rule/GameRules;LAVA_SOURCE_CONVERSION:Lnet/minecraft/world/rule/GameRule;
      intermediary field_40885 Lnet/minecraft/class_1928;field_40885:Lnet/minecraft/class_12279;
      official t Lesn;t:Lesi;
    • LIMITED_CRAFTING

      public static final GameRule<Boolean> LIMITED_CRAFTING
      Mappings:
      Namespace Name Mixin selector
      named LIMITED_CRAFTING Lnet/minecraft/world/rule/GameRules;LIMITED_CRAFTING:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19407 Lnet/minecraft/class_1928;field_19407:Lnet/minecraft/class_12279;
      official u Lesn;u:Lesi;
    • LOCATOR_BAR

      public static final GameRule<Boolean> LOCATOR_BAR
      Mappings:
      Namespace Name Mixin selector
      named LOCATOR_BAR Lnet/minecraft/world/rule/GameRules;LOCATOR_BAR:Lnet/minecraft/world/rule/GameRule;
      intermediary field_59751 Lnet/minecraft/class_1928;field_59751:Lnet/minecraft/class_12279;
      official v Lesn;v:Lesi;
    • LOG_ADMIN_COMMANDS

      public static final GameRule<Boolean> LOG_ADMIN_COMMANDS
      Mappings:
      Namespace Name Mixin selector
      named LOG_ADMIN_COMMANDS Lnet/minecraft/world/rule/GameRules;LOG_ADMIN_COMMANDS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19397 Lnet/minecraft/class_1928;field_19397:Lnet/minecraft/class_12279;
      official w Lesn;w:Lesi;
    • MAX_BLOCK_MODIFICATIONS

      public static final GameRule<Integer> MAX_BLOCK_MODIFICATIONS
      Mappings:
      Namespace Name Mixin selector
      named MAX_BLOCK_MODIFICATIONS Lnet/minecraft/world/rule/GameRules;MAX_BLOCK_MODIFICATIONS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_41766 Lnet/minecraft/class_1928;field_41766:Lnet/minecraft/class_12279;
      official x Lesn;x:Lesi;
    • MAX_COMMAND_FORKS

      public static final GameRule<Integer> MAX_COMMAND_FORKS
      Mappings:
      Namespace Name Mixin selector
      named MAX_COMMAND_FORKS Lnet/minecraft/world/rule/GameRules;MAX_COMMAND_FORKS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_46658 Lnet/minecraft/class_1928;field_46658:Lnet/minecraft/class_12279;
      official y Lesn;y:Lesi;
    • MAX_COMMAND_SEQUENCE_LENGTH

      public static final GameRule<Integer> MAX_COMMAND_SEQUENCE_LENGTH
      Mappings:
      Namespace Name Mixin selector
      named MAX_COMMAND_SEQUENCE_LENGTH Lnet/minecraft/world/rule/GameRules;MAX_COMMAND_SEQUENCE_LENGTH:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19408 Lnet/minecraft/class_1928;field_19408:Lnet/minecraft/class_12279;
      official z Lesn;z:Lesi;
    • MAX_ENTITY_CRAMMING

      public static final GameRule<Integer> MAX_ENTITY_CRAMMING
      A
      invalid reference
      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/rule/GameRules;MAX_ENTITY_CRAMMING:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19405 Lnet/minecraft/class_1928;field_19405:Lnet/minecraft/class_12279;
      official A Lesn;A:Lesi;
    • MAX_MINECART_SPEED

      public static final GameRule<Integer> MAX_MINECART_SPEED
      Mappings:
      Namespace Name Mixin selector
      named MAX_MINECART_SPEED Lnet/minecraft/world/rule/GameRules;MAX_MINECART_SPEED:Lnet/minecraft/world/rule/GameRule;
      intermediary field_52614 Lnet/minecraft/class_1928;field_52614:Lnet/minecraft/class_12279;
      official B Lesn;B:Lesi;
    • MAX_SNOW_ACCUMULATION_HEIGHT

      public static final GameRule<Integer> MAX_SNOW_ACCUMULATION_HEIGHT
      Mappings:
      Namespace Name Mixin selector
      named MAX_SNOW_ACCUMULATION_HEIGHT Lnet/minecraft/world/rule/GameRules;MAX_SNOW_ACCUMULATION_HEIGHT:Lnet/minecraft/world/rule/GameRule;
      intermediary field_40883 Lnet/minecraft/class_1928;field_40883:Lnet/minecraft/class_12279;
      official C Lesn;C:Lesi;
    • DO_MOB_LOOT

      public static final GameRule<Boolean> DO_MOB_LOOT
      A
      invalid reference
      game rule
      which regulates whether mobs should drop loot on death.
      Mappings:
      Namespace Name Mixin selector
      named DO_MOB_LOOT Lnet/minecraft/world/rule/GameRules;DO_MOB_LOOT:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19391 Lnet/minecraft/class_1928;field_19391:Lnet/minecraft/class_12279;
      official D Lesn;D:Lesi;
    • MOB_EXPLOSION_DROP_DECAY

      public static final GameRule<Boolean> MOB_EXPLOSION_DROP_DECAY
      Mappings:
      Namespace Name Mixin selector
      named MOB_EXPLOSION_DROP_DECAY Lnet/minecraft/world/rule/GameRules;MOB_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/rule/GameRule;
      intermediary field_40881 Lnet/minecraft/class_1928;field_40881:Lnet/minecraft/class_12279;
      official E Lesn;E:Lesi;
    • DO_MOB_GRIEFING

      public static final GameRule<Boolean> DO_MOB_GRIEFING
      A
      invalid reference
      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/rule/GameRules;DO_MOB_GRIEFING:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19388 Lnet/minecraft/class_1928;field_19388:Lnet/minecraft/class_12279;
      official F Lesn;F:Lesi;
    • NATURAL_HEALTH_REGENERATION

      public static final GameRule<Boolean> NATURAL_HEALTH_REGENERATION
      Mappings:
      Namespace Name Mixin selector
      named NATURAL_HEALTH_REGENERATION Lnet/minecraft/world/rule/GameRules;NATURAL_HEALTH_REGENERATION:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19395 Lnet/minecraft/class_1928;field_19395:Lnet/minecraft/class_12279;
      official G Lesn;G:Lesi;
    • PLAYER_MOVEMENT_CHECK

      public static final GameRule<Boolean> PLAYER_MOVEMENT_CHECK
      Mappings:
      Namespace Name Mixin selector
      named PLAYER_MOVEMENT_CHECK Lnet/minecraft/world/rule/GameRules;PLAYER_MOVEMENT_CHECK:Lnet/minecraft/world/rule/GameRule;
      intermediary field_54909 Lnet/minecraft/class_1928;field_54909:Lnet/minecraft/class_12279;
      official H Lesn;H:Lesi;
    • PLAYERS_NETHER_PORTAL_CREATIVE_DELAY

      public static final GameRule<Integer> PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
      Mappings:
      Namespace Name Mixin selector
      named PLAYERS_NETHER_PORTAL_CREATIVE_DELAY Lnet/minecraft/world/rule/GameRules;PLAYERS_NETHER_PORTAL_CREATIVE_DELAY:Lnet/minecraft/world/rule/GameRule;
      intermediary field_46795 Lnet/minecraft/class_1928;field_46795:Lnet/minecraft/class_12279;
      official I Lesn;I:Lesi;
    • PLAYERS_NETHER_PORTAL_DEFAULT_DELAY

      public static final GameRule<Integer> PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
      Mappings:
      Namespace Name Mixin selector
      named PLAYERS_NETHER_PORTAL_DEFAULT_DELAY Lnet/minecraft/world/rule/GameRules;PLAYERS_NETHER_PORTAL_DEFAULT_DELAY:Lnet/minecraft/world/rule/GameRule;
      intermediary field_46794 Lnet/minecraft/class_1928;field_46794:Lnet/minecraft/class_12279;
      official J Lesn;J:Lesi;
    • PLAYERS_SLEEPING_PERCENTAGE

      public static final GameRule<Integer> PLAYERS_SLEEPING_PERCENTAGE
      Mappings:
      Namespace Name Mixin selector
      named PLAYERS_SLEEPING_PERCENTAGE Lnet/minecraft/world/rule/GameRules;PLAYERS_SLEEPING_PERCENTAGE:Lnet/minecraft/world/rule/GameRule;
      intermediary field_28357 Lnet/minecraft/class_1928;field_28357:Lnet/minecraft/class_12279;
      official K Lesn;K:Lesi;
    • PROJECTILES_CAN_BREAK_BLOCKS

      public static final GameRule<Boolean> PROJECTILES_CAN_BREAK_BLOCKS
      Mappings:
      Namespace Name Mixin selector
      named PROJECTILES_CAN_BREAK_BLOCKS Lnet/minecraft/world/rule/GameRules;PROJECTILES_CAN_BREAK_BLOCKS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_46796 Lnet/minecraft/class_1928;field_46796:Lnet/minecraft/class_12279;
      official L Lesn;L:Lesi;
    • PVP

      public static final GameRule<Boolean> PVP
      Mappings:
      Namespace Name Mixin selector
      named PVP Lnet/minecraft/world/rule/GameRules;PVP:Lnet/minecraft/world/rule/GameRule;
      intermediary field_62434 Lnet/minecraft/class_1928;field_62434:Lnet/minecraft/class_12279;
      official M Lesn;M:Lesi;
    • DISABLE_RAIDS

      public static final GameRule<Boolean> DISABLE_RAIDS
      A
      invalid reference
      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/rule/GameRules;DISABLE_RAIDS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19422 Lnet/minecraft/class_1928;field_19422:Lnet/minecraft/class_12279;
      official N Lesn;N:Lesi;
    • RANDOM_TICK_SPEED

      public static final GameRule<Integer> RANDOM_TICK_SPEED
      Mappings:
      Namespace Name Mixin selector
      named RANDOM_TICK_SPEED Lnet/minecraft/world/rule/GameRules;RANDOM_TICK_SPEED:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19399 Lnet/minecraft/class_1928;field_19399:Lnet/minecraft/class_12279;
      official O Lesn;O:Lesi;
    • REDUCED_DEBUG_INFO

      public static final GameRule<Boolean> REDUCED_DEBUG_INFO
      A
      invalid reference
      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/rule/GameRules;REDUCED_DEBUG_INFO:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19401 Lnet/minecraft/class_1928;field_19401:Lnet/minecraft/class_12279;
      official P Lesn;P:Lesi;
    • RESPAWN_RADIUS

      public static final GameRule<Integer> RESPAWN_RADIUS
      Mappings:
      Namespace Name Mixin selector
      named RESPAWN_RADIUS Lnet/minecraft/world/rule/GameRules;RESPAWN_RADIUS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19403 Lnet/minecraft/class_1928;field_19403:Lnet/minecraft/class_12279;
      official Q Lesn;Q:Lesi;
    • SEND_COMMAND_FEEDBACK

      public static final GameRule<Boolean> SEND_COMMAND_FEEDBACK
      Mappings:
      Namespace Name Mixin selector
      named SEND_COMMAND_FEEDBACK Lnet/minecraft/world/rule/GameRules;SEND_COMMAND_FEEDBACK:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19400 Lnet/minecraft/class_1928;field_19400:Lnet/minecraft/class_12279;
      official R Lesn;R:Lesi;
    • ANNOUNCE_ADVANCEMENTS

      public static final GameRule<Boolean> ANNOUNCE_ADVANCEMENTS
      A
      invalid reference
      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/rule/GameRules;ANNOUNCE_ADVANCEMENTS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19409 Lnet/minecraft/class_1928;field_19409:Lnet/minecraft/class_12279;
      official S Lesn;S:Lesi;
    • SHOW_DEATH_MESSAGES

      public static final GameRule<Boolean> SHOW_DEATH_MESSAGES
      Mappings:
      Namespace Name Mixin selector
      named SHOW_DEATH_MESSAGES Lnet/minecraft/world/rule/GameRules;SHOW_DEATH_MESSAGES:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19398 Lnet/minecraft/class_1928;field_19398:Lnet/minecraft/class_12279;
      official T Lesn;T:Lesi;
    • SPAWNER_BLOCKS_WORK

      public static final GameRule<Boolean> SPAWNER_BLOCKS_WORK
      Mappings:
      Namespace Name Mixin selector
      named SPAWNER_BLOCKS_WORK Lnet/minecraft/world/rule/GameRules;SPAWNER_BLOCKS_WORK:Lnet/minecraft/world/rule/GameRule;
      intermediary field_62917 Lnet/minecraft/class_1928;field_62917:Lnet/minecraft/class_12279;
      official U Lesn;U:Lesi;
    • DO_MOB_SPAWNING

      public static final GameRule<Boolean> DO_MOB_SPAWNING
      A
      invalid reference
      game rule
      which regulates whether mobs can spawn naturally.
      Mappings:
      Namespace Name Mixin selector
      named DO_MOB_SPAWNING Lnet/minecraft/world/rule/GameRules;DO_MOB_SPAWNING:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19390 Lnet/minecraft/class_1928;field_19390:Lnet/minecraft/class_12279;
      official V Lesn;V:Lesi;
    • SPAWN_MONSTERS

      public static final GameRule<Boolean> SPAWN_MONSTERS
      Mappings:
      Namespace Name Mixin selector
      named SPAWN_MONSTERS Lnet/minecraft/world/rule/GameRules;SPAWN_MONSTERS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_62436 Lnet/minecraft/class_1928;field_62436:Lnet/minecraft/class_12279;
      official W Lesn;W:Lesi;
    • SPAWN_PATROLS

      public static final GameRule<Boolean> SPAWN_PATROLS
      Mappings:
      Namespace Name Mixin selector
      named SPAWN_PATROLS Lnet/minecraft/world/rule/GameRules;SPAWN_PATROLS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_21831 Lnet/minecraft/class_1928;field_21831:Lnet/minecraft/class_12279;
      official X Lesn;X:Lesi;
    • SPAWN_PHANTOMS

      public static final GameRule<Boolean> SPAWN_PHANTOMS
      Mappings:
      Namespace Name Mixin selector
      named SPAWN_PHANTOMS Lnet/minecraft/world/rule/GameRules;SPAWN_PHANTOMS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_20637 Lnet/minecraft/class_1928;field_20637:Lnet/minecraft/class_12279;
      official Y Lesn;Y:Lesi;
    • SPAWN_WANDERING_TRADERS

      public static final GameRule<Boolean> SPAWN_WANDERING_TRADERS
      Mappings:
      Namespace Name Mixin selector
      named SPAWN_WANDERING_TRADERS Lnet/minecraft/world/rule/GameRules;SPAWN_WANDERING_TRADERS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_21832 Lnet/minecraft/class_1928;field_21832:Lnet/minecraft/class_12279;
      official Z Lesn;Z:Lesi;
    • SPAWN_WARDENS

      public static final GameRule<Boolean> SPAWN_WARDENS
      Mappings:
      Namespace Name Mixin selector
      named SPAWN_WARDENS Lnet/minecraft/world/rule/GameRules;SPAWN_WARDENS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_38975 Lnet/minecraft/class_1928;field_38975:Lnet/minecraft/class_12279;
      official aa Lesn;aa:Lesi;
    • SPECTATORS_GENERATE_CHUNKS

      public static final GameRule<Boolean> SPECTATORS_GENERATE_CHUNKS
      Mappings:
      Namespace Name Mixin selector
      named SPECTATORS_GENERATE_CHUNKS Lnet/minecraft/world/rule/GameRules;SPECTATORS_GENERATE_CHUNKS:Lnet/minecraft/world/rule/GameRule;
      intermediary field_19402 Lnet/minecraft/class_1928;field_19402:Lnet/minecraft/class_12279;
      official ab Lesn;ab:Lesi;
    • SPREAD_VINES

      public static final GameRule<Boolean> SPREAD_VINES
      Mappings:
      Namespace Name Mixin selector
      named SPREAD_VINES Lnet/minecraft/world/rule/GameRules;SPREAD_VINES:Lnet/minecraft/world/rule/GameRule;
      intermediary field_42474 Lnet/minecraft/class_1928;field_42474:Lnet/minecraft/class_12279;
      official ac Lesn;ac:Lesi;
    • TNT_EXPLODES

      public static final GameRule<Boolean> TNT_EXPLODES
      Mappings:
      Namespace Name Mixin selector
      named TNT_EXPLODES Lnet/minecraft/world/rule/GameRules;TNT_EXPLODES:Lnet/minecraft/world/rule/GameRule;
      intermediary field_58052 Lnet/minecraft/class_1928;field_58052:Lnet/minecraft/class_12279;
      official ad Lesn;ad:Lesi;
    • TNT_EXPLOSION_DROP_DECAY

      public static final GameRule<Boolean> TNT_EXPLOSION_DROP_DECAY
      Mappings:
      Namespace Name Mixin selector
      named TNT_EXPLOSION_DROP_DECAY Lnet/minecraft/world/rule/GameRules;TNT_EXPLOSION_DROP_DECAY:Lnet/minecraft/world/rule/GameRule;
      intermediary field_40882 Lnet/minecraft/class_1928;field_40882:Lnet/minecraft/class_12279;
      official ae Lesn;ae:Lesi;
    • UNIVERSAL_ANGER

      public static final GameRule<Boolean> UNIVERSAL_ANGER
      Mappings:
      Namespace Name Mixin selector
      named UNIVERSAL_ANGER Lnet/minecraft/world/rule/GameRules;UNIVERSAL_ANGER:Lnet/minecraft/world/rule/GameRule;
      intermediary field_25402 Lnet/minecraft/class_1928;field_25402:Lnet/minecraft/class_12279;
      official af Lesn;af:Lesi;
    • WATER_SOURCE_CONVERSION

      public static final GameRule<Boolean> WATER_SOURCE_CONVERSION
      Mappings:
      Namespace Name Mixin selector
      named WATER_SOURCE_CONVERSION Lnet/minecraft/world/rule/GameRules;WATER_SOURCE_CONVERSION:Lnet/minecraft/world/rule/GameRule;
      intermediary field_40884 Lnet/minecraft/class_1928;field_40884:Lnet/minecraft/class_12279;
      official ag Lesn;ag:Lesi;
    • rules

      private final ServerGameRules rules
      Mappings:
      Namespace Name Mixin selector
      named rules Lnet/minecraft/world/rule/GameRules;rules:Lnet/minecraft/world/rule/ServerGameRules;
      intermediary field_9196 Lnet/minecraft/class_1928;field_9196:Lnet/minecraft/class_12280;
      official ah Lesn;ah:Lesk;
  • Constructor Details

    • GameRules

      public GameRules(FeatureSet enabledFeatures, ServerGameRules rules)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/rule/GameRules;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/world/rule/ServerGameRules;)V
      intermediary <init> Lnet/minecraft/class_1928;<init>(Lnet/minecraft/class_7699;Lnet/minecraft/class_12280;)V
      official <init> Lesn;<init>(Ldfo;Lesk;)V
    • GameRules

      public GameRules(FeatureSet enabledFeatures)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/rule/GameRules;<init>(Lnet/minecraft/resource/featuretoggle/FeatureSet;)V
      intermediary <init> Lnet/minecraft/class_1928;<init>(Lnet/minecraft/class_7699;)V
      official <init> Lesn;<init>(Ldfo;)V
  • Method Details

    • createCodec

      public static com.mojang.serialization.Codec<GameRules> createCodec(FeatureSet featureSet)
      Mappings:
      Namespace Name Mixin selector
      named createCodec Lnet/minecraft/world/rule/GameRules;createCodec(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lcom/mojang/serialization/Codec;
      intermediary method_76182 Lnet/minecraft/class_1928;method_76182(Lnet/minecraft/class_7699;)Lcom/mojang/serialization/Codec;
      official a Lesn;a(Ldfo;)Lcom/mojang/serialization/Codec;
    • streamRules

      public Stream<GameRule<?>> streamRules()
      Mappings:
      Namespace Name Mixin selector
      named streamRules Lnet/minecraft/world/rule/GameRules;streamRules()Ljava/util/stream/Stream;
      intermediary method_76181 Lnet/minecraft/class_1928;method_76181()Ljava/util/stream/Stream;
      official a Lesn;a()Ljava/util/stream/Stream;
    • getValue

      public <T> T getValue(GameRule<T> rule)
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/world/rule/GameRules;getValue(Lnet/minecraft/world/rule/GameRule;)Ljava/lang/Object;
      intermediary method_76185 Lnet/minecraft/class_1928;method_76185(Lnet/minecraft/class_12279;)Ljava/lang/Object;
      official a Lesn;a(Lesi;)Ljava/lang/Object;
    • setValue

      public <T> void setValue(GameRule<T> rule, T value, @Nullable MinecraftServer server)
      Mappings:
      Namespace Name Mixin selector
      named setValue Lnet/minecraft/world/rule/GameRules;setValue(Lnet/minecraft/world/rule/GameRule;Ljava/lang/Object;Lnet/minecraft/server/MinecraftServer;)V
      intermediary method_76186 Lnet/minecraft/class_1928;method_76186(Lnet/minecraft/class_12279;Ljava/lang/Object;Lnet/minecraft/server/MinecraftServer;)V
      official a Lesn;a(Lesi;Ljava/lang/Object;Lnet/minecraft/server/MinecraftServer;)V
    • copy

      public GameRules copy(FeatureSet enabledFeatures)
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/world/rule/GameRules;copy(Lnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/world/rule/GameRules;
      intermediary method_27325 Lnet/minecraft/class_1928;method_27325(Lnet/minecraft/class_7699;)Lnet/minecraft/class_1928;
      official b Lesn;b(Ldfo;)Lesn;
    • updateValues

      public void updateValues(GameRules rules, @Nullable MinecraftServer server)
      Mappings:
      Namespace Name Mixin selector
      named updateValues Lnet/minecraft/world/rule/GameRules;updateValues(Lnet/minecraft/world/rule/GameRules;Lnet/minecraft/server/MinecraftServer;)V
      intermediary method_76192 Lnet/minecraft/class_1928;method_76192(Lnet/minecraft/class_1928;Lnet/minecraft/server/MinecraftServer;)V
      official a Lesn;a(Lesn;Lnet/minecraft/server/MinecraftServer;)V
    • updateValues

      public void updateValues(ServerGameRules rules, @Nullable MinecraftServer server)
      Mappings:
      Namespace Name Mixin selector
      named updateValues Lnet/minecraft/world/rule/GameRules;updateValues(Lnet/minecraft/world/rule/ServerGameRules;Lnet/minecraft/server/MinecraftServer;)V
      intermediary method_76188 Lnet/minecraft/class_1928;method_76188(Lnet/minecraft/class_12280;Lnet/minecraft/server/MinecraftServer;)V
      official a Lesn;a(Lesk;Lnet/minecraft/server/MinecraftServer;)V
    • updateValue

      private <T> void updateValue(ServerGameRules rules, GameRule<T> rule, @Nullable MinecraftServer server)
      Mappings:
      Namespace Name Mixin selector
      named updateValue Lnet/minecraft/world/rule/GameRules;updateValue(Lnet/minecraft/world/rule/ServerGameRules;Lnet/minecraft/world/rule/GameRule;Lnet/minecraft/server/MinecraftServer;)V
      intermediary method_76187 Lnet/minecraft/class_1928;method_76187(Lnet/minecraft/class_12280;Lnet/minecraft/class_12279;Lnet/minecraft/server/MinecraftServer;)V
      official a Lesn;a(Lesk;Lesi;Lnet/minecraft/server/MinecraftServer;)V
    • accept

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

      The visitation involves calling both

      invalid reference
      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
      named accept Lnet/minecraft/world/rule/GameRules;accept(Lnet/minecraft/world/Visitor;)V
      intermediary method_20744 Lnet/minecraft/class_1928;method_20744(Lnet/minecraft/class_4311;)V
      official a Lesn;a(Lesm;)V
    • registerBooleanRule

      private static GameRule<Boolean> registerBooleanRule(String name, Category category, boolean defaultValue)
      Mappings:
      Namespace Name Mixin selector
      named registerBooleanRule Lnet/minecraft/world/rule/GameRules;registerBooleanRule(Ljava/lang/String;Lnet/minecraft/world/Category;Z)Lnet/minecraft/world/rule/GameRule;
      intermediary method_76198 Lnet/minecraft/class_1928;method_76198(Ljava/lang/String;Lnet/minecraft/class_5198;Z)Lnet/minecraft/class_12279;
      official a Lesn;a(Ljava/lang/String;Lesj;Z)Lesi;
    • registerIntRule

      private static GameRule<Integer> registerIntRule(String name, Category category, int defaultValue, int minValue)
      Mappings:
      Namespace Name Mixin selector
      named registerIntRule Lnet/minecraft/world/rule/GameRules;registerIntRule(Ljava/lang/String;Lnet/minecraft/world/Category;II)Lnet/minecraft/world/rule/GameRule;
      intermediary method_76195 Lnet/minecraft/class_1928;method_76195(Ljava/lang/String;Lnet/minecraft/class_5198;II)Lnet/minecraft/class_12279;
      official a Lesn;a(Ljava/lang/String;Lesj;II)Lesi;
    • registerIntRule

      private static GameRule<Integer> registerIntRule(String name, Category category, int defaultValue, int minValue, int maxValue)
      Mappings:
      Namespace Name Mixin selector
      named registerIntRule Lnet/minecraft/world/rule/GameRules;registerIntRule(Ljava/lang/String;Lnet/minecraft/world/Category;III)Lnet/minecraft/world/rule/GameRule;
      intermediary method_76196 Lnet/minecraft/class_1928;method_76196(Ljava/lang/String;Lnet/minecraft/class_5198;III)Lnet/minecraft/class_12279;
      official a Lesn;a(Ljava/lang/String;Lesj;III)Lesi;
    • registerIntRule

      private static GameRule<Integer> registerIntRule(String name, Category category, int defaultValue, int minValue, int maxValue, FeatureSet featureSet)
      Mappings:
      Namespace Name Mixin selector
      named registerIntRule Lnet/minecraft/world/rule/GameRules;registerIntRule(Ljava/lang/String;Lnet/minecraft/world/Category;IIILnet/minecraft/resource/featuretoggle/FeatureSet;)Lnet/minecraft/world/rule/GameRule;
      intermediary method_76197 Lnet/minecraft/class_1928;method_76197(Ljava/lang/String;Lnet/minecraft/class_5198;IIILnet/minecraft/class_7699;)Lnet/minecraft/class_12279;
      official a Lesn;a(Ljava/lang/String;Lesj;IIILdfo;)Lesi;
    • register

      private static <T> GameRule<T> register(String name, Category category, GameRuleType type, com.mojang.brigadier.arguments.ArgumentType<T> argumentType, com.mojang.serialization.Codec<T> codec, T defaultValue, FeatureSet featureSet, GameRules.Acceptor<T> acceptor, ToIntFunction<T> commandResultSupplier)
      Mappings:
      Namespace Name Mixin selector
      named register Lnet/minecraft/world/rule/GameRules;register(Ljava/lang/String;Lnet/minecraft/world/Category;Lnet/minecraft/server/dedicated/management/dispatch/GameRuleType;Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/mojang/serialization/Codec;Ljava/lang/Object;Lnet/minecraft/resource/featuretoggle/FeatureSet;Lnet/minecraft/world/rule/GameRules$Acceptor;Ljava/util/function/ToIntFunction;)Lnet/minecraft/world/rule/GameRule;
      intermediary method_8359 Lnet/minecraft/class_1928;method_8359(Ljava/lang/String;Lnet/minecraft/class_5198;Lnet/minecraft/class_11845;Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/mojang/serialization/Codec;Ljava/lang/Object;Lnet/minecraft/class_7699;Lnet/minecraft/class_1928$class_5199;Ljava/util/function/ToIntFunction;)Lnet/minecraft/class_12279;
      official a Lesn;a(Ljava/lang/String;Lesj;Lesl;Lcom/mojang/brigadier/arguments/ArgumentType;Lcom/mojang/serialization/Codec;Ljava/lang/Object;Ldfo;Lesn$a;Ljava/util/function/ToIntFunction;)Lesi;
    • getDefault

      public static GameRule<?> getDefault(Registry<GameRule<?>> registry)
      Mappings:
      Namespace Name Mixin selector
      named getDefault Lnet/minecraft/world/rule/GameRules;getDefault(Lnet/minecraft/registry/Registry;)Lnet/minecraft/world/rule/GameRule;
      intermediary method_76199 Lnet/minecraft/class_1928;method_76199(Lnet/minecraft/class_2378;)Lnet/minecraft/class_12279;
      official a Lesn;a(Ljs;)Lesi;
    • getRuleValueName

      public <T> String getRuleValueName(GameRule<T> rule)
      Mappings:
      Namespace Name Mixin selector
      named getRuleValueName Lnet/minecraft/world/rule/GameRules;getRuleValueName(Lnet/minecraft/world/rule/GameRule;)Ljava/lang/String;
      intermediary method_76200 Lnet/minecraft/class_1928;method_76200(Lnet/minecraft/class_12279;)Ljava/lang/String;
      official b Lesn;b(Lesi;)Ljava/lang/String;