Item: Removed protected block field, items should now override getBlock()

This commit is contained in:
Dylan K. Taylor
2018-02-15 18:44:25 +00:00
parent 2cabdca3f7
commit 88a05845c2
13 changed files with 50 additions and 37 deletions

View File

@ -38,10 +38,13 @@ class Banner extends Item{
public const TAG_PATTERN_NAME = TileBanner::TAG_PATTERN_NAME;
public function __construct(int $meta = 0){
$this->block = BlockFactory::get(Block::STANDING_BANNER);
parent::__construct(self::BANNER, $meta, "Banner");
}
public function getBlock() : Block{
return BlockFactory::get(Block::STANDING_BANNER);
}
public function getMaxStackSize() : int{
return 16;
}