Added froglights

This commit is contained in:
Dylan K. Taylor
2022-07-23 17:40:38 +01:00
parent 4419161a49
commit 102406ee79
11 changed files with 149 additions and 2 deletions

View File

@ -29,6 +29,7 @@ use pocketmine\block\utils\CopperOxidation;
use pocketmine\block\utils\CoralType;
use pocketmine\block\utils\DirtType;
use pocketmine\block\utils\DyeColor;
use pocketmine\block\utils\FroglightType;
use pocketmine\block\utils\SkullType;
use pocketmine\block\utils\SlabType;
use pocketmine\block\VanillaBlocks as Blocks;
@ -99,6 +100,10 @@ final class StringToItemParser extends StringToTParser{
$result->registerBlock($prefix . "cut_copper_slab", fn() => Blocks::CUT_COPPER_SLAB()->setOxidation($oxidation)->setWaxed($waxed));
}
}
foreach(FroglightType::getAll() as $froglightType){
$result->registerBlock($froglightType->name() . "_froglight", fn() => Blocks::FROGLIGHT()->setFroglightType($froglightType));
}
}
private static function registerBlocks(self $result) : void{