Class GameRuleKeys

java.lang.Object
io.papermc.paper.registry.keys.GameRuleKeys

@NullMarked @GeneratedClass public final class GameRuleKeys extends Object
Vanilla keys for RegistryKey.GAME_RULE.
API Note:
The fields provided here are a direct representation of what is available from the vanilla game source. They may be changed (including removals) on any Minecraft version bump, so cross-version compatibility is not provided on the same level as it is on most of the other API.
  • Field Details

    • ADVANCE_TIME

      public static final TypedKey<GameRule<?>> ADVANCE_TIME
      minecraft:advance_time
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • ADVANCE_WEATHER

      public static final TypedKey<GameRule<?>> ADVANCE_WEATHER
      minecraft:advance_weather
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • ALLOW_ENTERING_NETHER_USING_PORTALS

      public static final TypedKey<GameRule<?>> ALLOW_ENTERING_NETHER_USING_PORTALS
      minecraft:allow_entering_nether_using_portals
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • BLOCK_DROPS

      public static final TypedKey<GameRule<?>> BLOCK_DROPS
      minecraft:block_drops
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • BLOCK_EXPLOSION_DROP_DECAY

      public static final TypedKey<GameRule<?>> BLOCK_EXPLOSION_DROP_DECAY
      minecraft:block_explosion_drop_decay
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • COMMAND_BLOCK_OUTPUT

      public static final TypedKey<GameRule<?>> COMMAND_BLOCK_OUTPUT
      minecraft:command_block_output
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • COMMAND_BLOCKS_WORK

      public static final TypedKey<GameRule<?>> COMMAND_BLOCKS_WORK
      minecraft:command_blocks_work
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • DROWNING_DAMAGE

      public static final TypedKey<GameRule<?>> DROWNING_DAMAGE
      minecraft:drowning_damage
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • ELYTRA_MOVEMENT_CHECK

      public static final TypedKey<GameRule<?>> ELYTRA_MOVEMENT_CHECK
      minecraft:elytra_movement_check
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • ENDER_PEARLS_VANISH_ON_DEATH

      public static final TypedKey<GameRule<?>> ENDER_PEARLS_VANISH_ON_DEATH
      minecraft:ender_pearls_vanish_on_death
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • ENTITY_DROPS

      public static final TypedKey<GameRule<?>> ENTITY_DROPS
      minecraft:entity_drops
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • FALL_DAMAGE

      public static final TypedKey<GameRule<?>> FALL_DAMAGE
      minecraft:fall_damage
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • FIRE_DAMAGE

      public static final TypedKey<GameRule<?>> FIRE_DAMAGE
      minecraft:fire_damage
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • FIRE_SPREAD_RADIUS_AROUND_PLAYER

      public static final TypedKey<GameRule<?>> FIRE_SPREAD_RADIUS_AROUND_PLAYER
      minecraft:fire_spread_radius_around_player
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • FORGIVE_DEAD_PLAYERS

      public static final TypedKey<GameRule<?>> FORGIVE_DEAD_PLAYERS
      minecraft:forgive_dead_players
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • FREEZE_DAMAGE

      public static final TypedKey<GameRule<?>> FREEZE_DAMAGE
      minecraft:freeze_damage
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • GLOBAL_SOUND_EVENTS

      public static final TypedKey<GameRule<?>> GLOBAL_SOUND_EVENTS
      minecraft:global_sound_events
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • IMMEDIATE_RESPAWN

      public static final TypedKey<GameRule<?>> IMMEDIATE_RESPAWN
      minecraft:immediate_respawn
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • KEEP_INVENTORY

      public static final TypedKey<GameRule<?>> KEEP_INVENTORY
      minecraft:keep_inventory
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • LAVA_SOURCE_CONVERSION

      public static final TypedKey<GameRule<?>> LAVA_SOURCE_CONVERSION
      minecraft:lava_source_conversion
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • LIMITED_CRAFTING

      public static final TypedKey<GameRule<?>> LIMITED_CRAFTING
      minecraft:limited_crafting
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • LOCATOR_BAR

      public static final TypedKey<GameRule<?>> LOCATOR_BAR
      minecraft:locator_bar
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • LOG_ADMIN_COMMANDS

      public static final TypedKey<GameRule<?>> LOG_ADMIN_COMMANDS
      minecraft:log_admin_commands
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MAX_BLOCK_MODIFICATIONS

      public static final TypedKey<GameRule<?>> MAX_BLOCK_MODIFICATIONS
      minecraft:max_block_modifications
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MAX_COMMAND_FORKS

      public static final TypedKey<GameRule<?>> MAX_COMMAND_FORKS
      minecraft:max_command_forks
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MAX_COMMAND_SEQUENCE_LENGTH

      public static final TypedKey<GameRule<?>> MAX_COMMAND_SEQUENCE_LENGTH
      minecraft:max_command_sequence_length
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MAX_ENTITY_CRAMMING

      public static final TypedKey<GameRule<?>> MAX_ENTITY_CRAMMING
      minecraft:max_entity_cramming
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MAX_MINECART_SPEED

      @Experimental @MinecraftExperimental(MINECART_IMPROVEMENTS) public static final TypedKey<GameRule<?>> MAX_MINECART_SPEED
      minecraft:max_minecart_speed
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MAX_SNOW_ACCUMULATION_HEIGHT

      public static final TypedKey<GameRule<?>> MAX_SNOW_ACCUMULATION_HEIGHT
      minecraft:max_snow_accumulation_height
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MOB_DROPS

      public static final TypedKey<GameRule<?>> MOB_DROPS
      minecraft:mob_drops
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MOB_EXPLOSION_DROP_DECAY

      public static final TypedKey<GameRule<?>> MOB_EXPLOSION_DROP_DECAY
      minecraft:mob_explosion_drop_decay
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • MOB_GRIEFING

      public static final TypedKey<GameRule<?>> MOB_GRIEFING
      minecraft:mob_griefing
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • NATURAL_HEALTH_REGENERATION

      public static final TypedKey<GameRule<?>> NATURAL_HEALTH_REGENERATION
      minecraft:natural_health_regeneration
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • PLAYER_MOVEMENT_CHECK

      public static final TypedKey<GameRule<?>> PLAYER_MOVEMENT_CHECK
      minecraft:player_movement_check
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • PLAYERS_NETHER_PORTAL_CREATIVE_DELAY

      public static final TypedKey<GameRule<?>> PLAYERS_NETHER_PORTAL_CREATIVE_DELAY
      minecraft:players_nether_portal_creative_delay
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • PLAYERS_NETHER_PORTAL_DEFAULT_DELAY

      public static final TypedKey<GameRule<?>> PLAYERS_NETHER_PORTAL_DEFAULT_DELAY
      minecraft:players_nether_portal_default_delay
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • PLAYERS_SLEEPING_PERCENTAGE

      public static final TypedKey<GameRule<?>> PLAYERS_SLEEPING_PERCENTAGE
      minecraft:players_sleeping_percentage
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • PROJECTILES_CAN_BREAK_BLOCKS

      public static final TypedKey<GameRule<?>> PROJECTILES_CAN_BREAK_BLOCKS
      minecraft:projectiles_can_break_blocks
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • PVP

      public static final TypedKey<GameRule<?>> PVP
      minecraft:pvp
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • RAIDS

      public static final TypedKey<GameRule<?>> RAIDS
      minecraft:raids
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • RANDOM_TICK_SPEED

      public static final TypedKey<GameRule<?>> RANDOM_TICK_SPEED
      minecraft:random_tick_speed
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • REDUCED_DEBUG_INFO

      public static final TypedKey<GameRule<?>> REDUCED_DEBUG_INFO
      minecraft:reduced_debug_info
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • RESPAWN_RADIUS

      public static final TypedKey<GameRule<?>> RESPAWN_RADIUS
      minecraft:respawn_radius
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SEND_COMMAND_FEEDBACK

      public static final TypedKey<GameRule<?>> SEND_COMMAND_FEEDBACK
      minecraft:send_command_feedback
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SHOW_ADVANCEMENT_MESSAGES

      public static final TypedKey<GameRule<?>> SHOW_ADVANCEMENT_MESSAGES
      minecraft:show_advancement_messages
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SHOW_DEATH_MESSAGES

      public static final TypedKey<GameRule<?>> SHOW_DEATH_MESSAGES
      minecraft:show_death_messages
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SPAWN_MOBS

      public static final TypedKey<GameRule<?>> SPAWN_MOBS
      minecraft:spawn_mobs
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SPAWN_MONSTERS

      public static final TypedKey<GameRule<?>> SPAWN_MONSTERS
      minecraft:spawn_monsters
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SPAWN_PATROLS

      public static final TypedKey<GameRule<?>> SPAWN_PATROLS
      minecraft:spawn_patrols
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SPAWN_PHANTOMS

      public static final TypedKey<GameRule<?>> SPAWN_PHANTOMS
      minecraft:spawn_phantoms
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SPAWN_WANDERING_TRADERS

      public static final TypedKey<GameRule<?>> SPAWN_WANDERING_TRADERS
      minecraft:spawn_wandering_traders
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SPAWN_WARDENS

      public static final TypedKey<GameRule<?>> SPAWN_WARDENS
      minecraft:spawn_wardens
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SPAWNER_BLOCKS_WORK

      public static final TypedKey<GameRule<?>> SPAWNER_BLOCKS_WORK
      minecraft:spawner_blocks_work
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SPECTATORS_GENERATE_CHUNKS

      public static final TypedKey<GameRule<?>> SPECTATORS_GENERATE_CHUNKS
      minecraft:spectators_generate_chunks
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • SPREAD_VINES

      public static final TypedKey<GameRule<?>> SPREAD_VINES
      minecraft:spread_vines
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • TNT_EXPLODES

      public static final TypedKey<GameRule<?>> TNT_EXPLODES
      minecraft:tnt_explodes
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • TNT_EXPLOSION_DROP_DECAY

      public static final TypedKey<GameRule<?>> TNT_EXPLOSION_DROP_DECAY
      minecraft:tnt_explosion_drop_decay
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • UNIVERSAL_ANGER

      public static final TypedKey<GameRule<?>> UNIVERSAL_ANGER
      minecraft:universal_anger
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions
    • WATER_SOURCE_CONVERSION

      public static final TypedKey<GameRule<?>> WATER_SOURCE_CONVERSION
      minecraft:water_source_conversion
      API Note:
      This field is version-dependant and may be removed in future Minecraft versions