Added chorus plant and flower

This commit is contained in:
Dylan K. Taylor
2022-07-20 20:19:36 +01:00
parent c1acf44337
commit 67682cbf27
10 changed files with 435 additions and 2 deletions

View File

@ -154,6 +154,8 @@ use function mb_strtolower;
* @method static Opaque CHISELED_RED_SANDSTONE()
* @method static Opaque CHISELED_SANDSTONE()
* @method static Opaque CHISELED_STONE_BRICKS()
* @method static ChorusFlower CHORUS_FLOWER()
* @method static ChorusPlant CHORUS_PLANT()
* @method static Clay CLAY()
* @method static Coal COAL()
* @method static CoalOre COAL_ORE()
@ -1169,6 +1171,7 @@ final class VanillaBlocks{
self::registerMudBlocks();
self::registerCraftingTables();
self::registerChorusBlocks();
self::registerOres();
self::registerWoodenBlocks();
self::registerCauldronBlocks();
@ -1375,6 +1378,12 @@ final class VanillaBlocks{
self::register("smithing_table", new SmithingTable(new BID(Ids::SMITHING_TABLE), "Smithing Table", $craftingBlockBreakInfo));
}
private static function registerChorusBlocks() : void{
$chorusBlockBreakInfo = new BreakInfo(0.4, ToolType::AXE);
self::register("chorus_plant", new ChorusPlant(new BID(Ids::CHORUS_PLANT), "Chorus Plant", $chorusBlockBreakInfo));
self::register("chorus_flower", new ChorusFlower(new BID(Ids::CHORUS_FLOWER), "Chorus Flower", $chorusBlockBreakInfo));
}
private static function registerBlocksR13() : void{
self::register("light", new Light(new BID(Ids::LIGHT), "Light Block", BreakInfo::indestructible()));
self::register("wither_rose", new WitherRose(new BID(Ids::WITHER_ROSE), "Wither Rose", BreakInfo::instant()));