Revert back to floor/wall banner variants

this code largely duplicates the same code in FloorSign/WallSign and needs to be de-duplicated.
This commit is contained in:
Dylan K. Taylor
2020-10-04 19:05:43 +01:00
parent 505d4e402f
commit 7f9c4355f0
10 changed files with 155 additions and 92 deletions

View File

@@ -260,7 +260,11 @@ class ItemFactory{
//TODO: add interface to dye-colour objects
$this->register(new Dye(new ItemIdentifier(ItemIds::DYE, $dyeMap[$color->id()] ?? $colorIdMap->toInvertedId($color)), $color->getDisplayName() . " Dye", $color));
$this->register(new Bed(new ItemIdentifier(ItemIds::BED, $colorIdMap->toId($color)), $color->getDisplayName() . " Bed", $color));
$this->register(new Banner(new ItemIdentifier(ItemIds::BANNER, $colorIdMap->toInvertedId($color)), $color->getDisplayName() . " Banner", $color));
$this->register((new Banner(
new ItemIdentifier(ItemIds::BANNER, 0),
VanillaBlocks::BANNER(),
VanillaBlocks::WALL_BANNER()
))->setColor($color));
}
foreach(Potion::ALL as $type){