Skip to main content

steel_registry/generated/
vanilla_pig_variants.rs

1use crate :: pig_variant :: { PigVariant , PigVariantRegistry , PigModelType , } ; use steel_utils :: Identifier ; use std :: borrow :: Cow ; use crate :: shared_structs :: { SpawnConditionEntry , BiomeCondition } ; pub static COLD : PigVariant = PigVariant { key : Identifier :: vanilla_static ("cold") , asset_id : Identifier { namespace : Cow :: Borrowed ("minecraft") , path : Cow :: Borrowed ("entity/pig/pig_cold") } , baby_asset_id : Identifier { namespace : Cow :: Borrowed ("minecraft") , path : Cow :: Borrowed ("entity/pig/pig_cold_baby") } , model : PigModelType :: Cold , spawn_conditions : & [SpawnConditionEntry { priority : 1i32 , condition : Some (BiomeCondition { condition_type : "minecraft:biome" , biomes : crate :: shared_structs :: BiomeConditionTarget :: Tag (Identifier { namespace : Cow :: Borrowed ("minecraft") , path : Cow :: Borrowed ("spawns_cold_variant_farm_animals") }) , }) , }] , } ; pub static TEMPERATE : PigVariant = PigVariant { key : Identifier :: vanilla_static ("temperate") , asset_id : Identifier { namespace : Cow :: Borrowed ("minecraft") , path : Cow :: Borrowed ("entity/pig/pig_temperate") } , baby_asset_id : Identifier { namespace : Cow :: Borrowed ("minecraft") , path : Cow :: Borrowed ("entity/pig/pig_temperate_baby") } , model : PigModelType :: Normal , spawn_conditions : & [SpawnConditionEntry { priority : 0i32 , condition : None , }] , } ; pub static WARM : PigVariant = PigVariant { key : Identifier :: vanilla_static ("warm") , asset_id : Identifier { namespace : Cow :: Borrowed ("minecraft") , path : Cow :: Borrowed ("entity/pig/pig_warm") } , baby_asset_id : Identifier { namespace : Cow :: Borrowed ("minecraft") , path : Cow :: Borrowed ("entity/pig/pig_warm_baby") } , model : PigModelType :: Normal , spawn_conditions : & [SpawnConditionEntry { priority : 1i32 , condition : Some (BiomeCondition { condition_type : "minecraft:biome" , biomes : crate :: shared_structs :: BiomeConditionTarget :: Tag (Identifier { namespace : Cow :: Borrowed ("minecraft") , path : Cow :: Borrowed ("spawns_warm_variant_farm_animals") }) , }) , }] , } ; pub fn register_pig_variants (registry : & mut PigVariantRegistry) { registry . register (& COLD) ; registry . register (& TEMPERATE) ; registry . register (& WARM) ; }