ClimateVariant 5.47.0
Climate variant of cows, pigs, chickens and thrown eggs (values of the actor property minecraft:climate_variant, in definition order). Farm animals take it from the biome they spawn in (biome tags spawns_warm_variant_farm_animals / spawns_cold_variant_farm_animals), babies from a parent; chickens lay the egg of their climate (egg, brown egg, blue egg) and a thrown brown or blue egg hatches a warm or cold chick.
Cases
COLD
php
case COLD = "cold"TEMPERATE
php
case TEMPERATE = "temperate"WARM
php
case WARM = "warm"Constants
COLD_BIOME_TAG
php
public const COLD_BIOME_TAG = "spawns_cold_variant_farm_animals"WARM_BIOME_TAG
php
public const WARM_BIOME_TAG = "spawns_warm_variant_farm_animals"Methods
forBiome()
php
public static function forBiome(\pocketmine\world\World $world, \pocketmine\math\Vector3 $pos) : selffromBiomeTags()
php
public static function fromBiomeTags(array $tags) : selfClimate of the biome tags: warm first, then cold (vanilla entity_spawned first_valid of cow, pig and chicken).
fromEggItem()
php
public static function fromEggItem(\pocketmine\item\Item $item) : selfClimate of an egg item: brown eggs are warm, blue eggs cold, the others temperate.
getEggItem()
php
public function getEggItem() : \pocketmine\item\ItemEgg laid by a chicken of this climate (vanilla chicken_adult spawn_entity).
