34 public static function get(
Random $random, ?TreeType $type =
null) : ?
Tree{
36 null, TreeType::OAK =>
new OakTree(),
40 TreeType::BIRCH =>
new BirchTree($random->nextBoundedInt(39) === 0),
41 TreeType::CRIMSON =>
new NetherTree(VanillaBlocks::CRIMSON_STEM(), VanillaBlocks::NETHER_WART_BLOCK(), VanillaBlocks::SHROOMLIGHT(), ($random->nextBoundedInt(9) + 4) * ($random->nextBoundedInt(12) === 0 ? 2 : 1), hasVines:
true, huge: $random->
nextFloat() < 0.06),
42 TreeType::WARPED =>
new NetherTree(VanillaBlocks::WARPED_STEM(), VanillaBlocks::WARPED_WART_BLOCK(), VanillaBlocks::SHROOMLIGHT(), ($random->nextBoundedInt(9) + 4) * ($random->nextBoundedInt(12) === 0 ? 2 : 1), hasVines:
false, huge: $random->
nextFloat() < 0.06),