Skip to main content

steel_registry/generated/
vanilla_game_rules.rs

1use crate :: game_rules :: { GameRule , GameRuleRegistry , GameRuleCategory } ; use steel_utils :: Identifier ; pub static ADVANCE_TIME : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("advance_time") , GameRuleCategory :: Updates , true ,) ; pub static ADVANCE_WEATHER : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("advance_weather") , GameRuleCategory :: Updates , true ,) ; pub static ALLOW_ENTERING_NETHER_USING_PORTALS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("allow_entering_nether_using_portals") , GameRuleCategory :: Misc , true ,) ; pub static BLOCK_DROPS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("block_drops") , GameRuleCategory :: Drops , true ,) ; pub static BLOCK_EXPLOSION_DROP_DECAY : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("block_explosion_drop_decay") , GameRuleCategory :: Drops , true ,) ; pub static COMMAND_BLOCKS_WORK : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("command_blocks_work") , GameRuleCategory :: Misc , true ,) ; pub static COMMAND_BLOCK_OUTPUT : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("command_block_output") , GameRuleCategory :: Chat , true ,) ; pub static DROWNING_DAMAGE : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("drowning_damage") , GameRuleCategory :: Player , true ,) ; pub static ELYTRA_MOVEMENT_CHECK : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("elytra_movement_check") , GameRuleCategory :: Player , true ,) ; pub static ENDER_PEARLS_VANISH_ON_DEATH : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("ender_pearls_vanish_on_death") , GameRuleCategory :: Player , true ,) ; pub static ENTITY_DROPS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("entity_drops") , GameRuleCategory :: Drops , true ,) ; pub static FALL_DAMAGE : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("fall_damage") , GameRuleCategory :: Player , true ,) ; pub static FIRE_DAMAGE : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("fire_damage") , GameRuleCategory :: Player , true ,) ; pub static FIRE_SPREAD_RADIUS_AROUND_PLAYER : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("fire_spread_radius_around_player") , GameRuleCategory :: Updates , 128i32 , Some (- 1i32) , None ,) ; pub static FORGIVE_DEAD_PLAYERS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("forgive_dead_players") , GameRuleCategory :: Mobs , true ,) ; pub static FREEZE_DAMAGE : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("freeze_damage") , GameRuleCategory :: Player , true ,) ; pub static GLOBAL_SOUND_EVENTS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("global_sound_events") , GameRuleCategory :: Misc , true ,) ; pub static IMMEDIATE_RESPAWN : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("immediate_respawn") , GameRuleCategory :: Player , false ,) ; pub static KEEP_INVENTORY : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("keep_inventory") , GameRuleCategory :: Player , false ,) ; pub static LAVA_SOURCE_CONVERSION : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("lava_source_conversion") , GameRuleCategory :: Updates , false ,) ; pub static LIMITED_CRAFTING : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("limited_crafting") , GameRuleCategory :: Player , false ,) ; pub static LOCATOR_BAR : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("locator_bar") , GameRuleCategory :: Player , true ,) ; pub static LOG_ADMIN_COMMANDS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("log_admin_commands") , GameRuleCategory :: Chat , true ,) ; pub static MAX_BLOCK_MODIFICATIONS : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("max_block_modifications") , GameRuleCategory :: Misc , 32768i32 , Some (1i32) , None ,) ; pub static MAX_COMMAND_FORKS : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("max_command_forks") , GameRuleCategory :: Misc , 65536i32 , Some (0i32) , None ,) ; pub static MAX_COMMAND_SEQUENCE_LENGTH : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("max_command_sequence_length") , GameRuleCategory :: Misc , 65536i32 , Some (0i32) , None ,) ; pub static MAX_ENTITY_CRAMMING : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("max_entity_cramming") , GameRuleCategory :: Mobs , 24i32 , Some (0i32) , None ,) ; pub static MAX_MINECART_SPEED : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("max_minecart_speed") , GameRuleCategory :: Misc , 8i32 , Some (1i32) , Some (1000i32) ,) ; pub static MAX_SNOW_ACCUMULATION_HEIGHT : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("max_snow_accumulation_height") , GameRuleCategory :: Updates , 1i32 , Some (0i32) , Some (8i32) ,) ; pub static MOB_DROPS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("mob_drops") , GameRuleCategory :: Drops , true ,) ; pub static MOB_EXPLOSION_DROP_DECAY : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("mob_explosion_drop_decay") , GameRuleCategory :: Drops , true ,) ; pub static MOB_GRIEFING : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("mob_griefing") , GameRuleCategory :: Mobs , true ,) ; pub static NATURAL_HEALTH_REGENERATION : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("natural_health_regeneration") , GameRuleCategory :: Player , true ,) ; pub static PLAYER_MOVEMENT_CHECK : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("player_movement_check") , GameRuleCategory :: Player , true ,) ; pub static PLAYERS_NETHER_PORTAL_CREATIVE_DELAY : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("players_nether_portal_creative_delay") , GameRuleCategory :: Player , 0i32 , Some (0i32) , None ,) ; pub static PLAYERS_NETHER_PORTAL_DEFAULT_DELAY : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("players_nether_portal_default_delay") , GameRuleCategory :: Player , 80i32 , Some (0i32) , None ,) ; pub static PLAYERS_SLEEPING_PERCENTAGE : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("players_sleeping_percentage") , GameRuleCategory :: Player , 100i32 , Some (0i32) , None ,) ; pub static PROJECTILES_CAN_BREAK_BLOCKS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("projectiles_can_break_blocks") , GameRuleCategory :: Drops , true ,) ; pub static PVP : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("pvp") , GameRuleCategory :: Player , true ,) ; pub static RAIDS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("raids") , GameRuleCategory :: Mobs , true ,) ; pub static RANDOM_TICK_SPEED : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("random_tick_speed") , GameRuleCategory :: Updates , 3i32 , Some (0i32) , None ,) ; pub static REDUCED_DEBUG_INFO : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("reduced_debug_info") , GameRuleCategory :: Misc , false ,) ; pub static RESPAWN_RADIUS : GameRule < i32 > = GameRule :: integer (Identifier :: vanilla_static ("respawn_radius") , GameRuleCategory :: Player , 10i32 , Some (0i32) , None ,) ; pub static SEND_COMMAND_FEEDBACK : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("send_command_feedback") , GameRuleCategory :: Chat , true ,) ; pub static SHOW_ADVANCEMENT_MESSAGES : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("show_advancement_messages") , GameRuleCategory :: Chat , true ,) ; pub static SHOW_DEATH_MESSAGES : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("show_death_messages") , GameRuleCategory :: Chat , true ,) ; pub static SPAWNER_BLOCKS_WORK : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("spawner_blocks_work") , GameRuleCategory :: Misc , true ,) ; pub static SPAWN_MOBS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("spawn_mobs") , GameRuleCategory :: Spawning , true ,) ; pub static SPAWN_MONSTERS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("spawn_monsters") , GameRuleCategory :: Spawning , true ,) ; pub static SPAWN_PATROLS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("spawn_patrols") , GameRuleCategory :: Spawning , true ,) ; pub static SPAWN_PHANTOMS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("spawn_phantoms") , GameRuleCategory :: Spawning , true ,) ; pub static SPAWN_WANDERING_TRADERS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("spawn_wandering_traders") , GameRuleCategory :: Spawning , true ,) ; pub static SPAWN_WARDENS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("spawn_wardens") , GameRuleCategory :: Spawning , true ,) ; pub static SPECTATORS_GENERATE_CHUNKS : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("spectators_generate_chunks") , GameRuleCategory :: Player , true ,) ; pub static SPREAD_VINES : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("spread_vines") , GameRuleCategory :: Updates , true ,) ; pub static TNT_EXPLODES : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("tnt_explodes") , GameRuleCategory :: Misc , true ,) ; pub static TNT_EXPLOSION_DROP_DECAY : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("tnt_explosion_drop_decay") , GameRuleCategory :: Drops , false ,) ; pub static UNIVERSAL_ANGER : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("universal_anger") , GameRuleCategory :: Mobs , false ,) ; pub static WATER_SOURCE_CONVERSION : GameRule < bool > = GameRule :: boolean (Identifier :: vanilla_static ("water_source_conversion") , GameRuleCategory :: Updates , true ,) ; pub fn register_game_rules (registry : & mut GameRuleRegistry) { registry . register (& ADVANCE_TIME) ; registry . register (& ADVANCE_WEATHER) ; registry . register (& ALLOW_ENTERING_NETHER_USING_PORTALS) ; registry . register (& BLOCK_DROPS) ; registry . register (& BLOCK_EXPLOSION_DROP_DECAY) ; registry . register (& COMMAND_BLOCKS_WORK) ; registry . register (& COMMAND_BLOCK_OUTPUT) ; registry . register (& DROWNING_DAMAGE) ; registry . register (& ELYTRA_MOVEMENT_CHECK) ; registry . register (& ENDER_PEARLS_VANISH_ON_DEATH) ; registry . register (& ENTITY_DROPS) ; registry . register (& FALL_DAMAGE) ; registry . register (& FIRE_DAMAGE) ; registry . register (& FIRE_SPREAD_RADIUS_AROUND_PLAYER) ; registry . register (& FORGIVE_DEAD_PLAYERS) ; registry . register (& FREEZE_DAMAGE) ; registry . register (& GLOBAL_SOUND_EVENTS) ; registry . register (& IMMEDIATE_RESPAWN) ; registry . register (& KEEP_INVENTORY) ; registry . register (& LAVA_SOURCE_CONVERSION) ; registry . register (& LIMITED_CRAFTING) ; registry . register (& LOCATOR_BAR) ; registry . register (& LOG_ADMIN_COMMANDS) ; registry . register (& MAX_BLOCK_MODIFICATIONS) ; registry . register (& MAX_COMMAND_FORKS) ; registry . register (& MAX_COMMAND_SEQUENCE_LENGTH) ; registry . register (& MAX_ENTITY_CRAMMING) ; registry . register (& MAX_MINECART_SPEED) ; registry . register (& MAX_SNOW_ACCUMULATION_HEIGHT) ; registry . register (& MOB_DROPS) ; registry . register (& MOB_EXPLOSION_DROP_DECAY) ; registry . register (& MOB_GRIEFING) ; registry . register (& NATURAL_HEALTH_REGENERATION) ; registry . register (& PLAYER_MOVEMENT_CHECK) ; registry . register (& PLAYERS_NETHER_PORTAL_CREATIVE_DELAY) ; registry . register (& PLAYERS_NETHER_PORTAL_DEFAULT_DELAY) ; registry . register (& PLAYERS_SLEEPING_PERCENTAGE) ; registry . register (& PROJECTILES_CAN_BREAK_BLOCKS) ; registry . register (& PVP) ; registry . register (& RAIDS) ; registry . register (& RANDOM_TICK_SPEED) ; registry . register (& REDUCED_DEBUG_INFO) ; registry . register (& RESPAWN_RADIUS) ; registry . register (& SEND_COMMAND_FEEDBACK) ; registry . register (& SHOW_ADVANCEMENT_MESSAGES) ; registry . register (& SHOW_DEATH_MESSAGES) ; registry . register (& SPAWNER_BLOCKS_WORK) ; registry . register (& SPAWN_MOBS) ; registry . register (& SPAWN_MONSTERS) ; registry . register (& SPAWN_PATROLS) ; registry . register (& SPAWN_PHANTOMS) ; registry . register (& SPAWN_WANDERING_TRADERS) ; registry . register (& SPAWN_WARDENS) ; registry . register (& SPECTATORS_GENERATE_CHUNKS) ; registry . register (& SPREAD_VINES) ; registry . register (& TNT_EXPLODES) ; registry . register (& TNT_EXPLOSION_DROP_DECAY) ; registry . register (& UNIVERSAL_ANGER) ; registry . register (& WATER_SOURCE_CONVERSION) ; }