diff --git a/src/pocketmine/tile/Banner.php b/src/pocketmine/tile/Banner.php index 9cdf3a30c..e538f5819 100644 --- a/src/pocketmine/tile/Banner.php +++ b/src/pocketmine/tile/Banner.php @@ -118,7 +118,7 @@ class Banner extends Spawnable implements Nameable{ $this->saveName($nbt); } - public function addAdditionalSpawnData(CompoundTag $nbt) : void{ + protected function addAdditionalSpawnData(CompoundTag $nbt) : void{ $nbt->setInt(self::TAG_BASE, $this->baseColor); $nbt->setTag($this->patterns); $this->addNameSpawnData($nbt); diff --git a/src/pocketmine/tile/Bed.php b/src/pocketmine/tile/Bed.php index 322e42d62..b53c3de27 100644 --- a/src/pocketmine/tile/Bed.php +++ b/src/pocketmine/tile/Bed.php @@ -51,7 +51,7 @@ class Bed extends Spawnable{ $nbt->setByte(self::TAG_COLOR, $this->color); } - public function addAdditionalSpawnData(CompoundTag $nbt) : void{ + protected function addAdditionalSpawnData(CompoundTag $nbt) : void{ $nbt->setByte(self::TAG_COLOR, $this->color); } diff --git a/src/pocketmine/tile/Chest.php b/src/pocketmine/tile/Chest.php index f8d202114..15ff38580 100644 --- a/src/pocketmine/tile/Chest.php +++ b/src/pocketmine/tile/Chest.php @@ -192,7 +192,7 @@ class Chest extends Spawnable implements InventoryHolder, Container, Nameable{ return true; } - public function addAdditionalSpawnData(CompoundTag $nbt) : void{ + protected function addAdditionalSpawnData(CompoundTag $nbt) : void{ if($this->isPaired()){ $nbt->setInt(self::TAG_PAIRX, $this->pairX); $nbt->setInt(self::TAG_PAIRZ, $this->pairZ); diff --git a/src/pocketmine/tile/EnderChest.php b/src/pocketmine/tile/EnderChest.php index 822c4c01a..c3b868117 100644 --- a/src/pocketmine/tile/EnderChest.php +++ b/src/pocketmine/tile/EnderChest.php @@ -35,7 +35,7 @@ class EnderChest extends Spawnable{ } - public function addAdditionalSpawnData(CompoundTag $nbt) : void{ + protected function addAdditionalSpawnData(CompoundTag $nbt) : void{ } diff --git a/src/pocketmine/tile/FlowerPot.php b/src/pocketmine/tile/FlowerPot.php index 84de9f06c..7b69d69af 100644 --- a/src/pocketmine/tile/FlowerPot.php +++ b/src/pocketmine/tile/FlowerPot.php @@ -83,7 +83,7 @@ class FlowerPot extends Spawnable{ return $this->getItem()->isNull(); } - public function addAdditionalSpawnData(CompoundTag $nbt) : void{ + protected function addAdditionalSpawnData(CompoundTag $nbt) : void{ $nbt->setShort(self::TAG_ITEM, $this->item->getId()); $nbt->setInt(self::TAG_ITEM_DATA, $this->item->getDamage()); } diff --git a/src/pocketmine/tile/Furnace.php b/src/pocketmine/tile/Furnace.php index a952d0daf..6a78db168 100644 --- a/src/pocketmine/tile/Furnace.php +++ b/src/pocketmine/tile/Furnace.php @@ -230,7 +230,7 @@ class Furnace extends Spawnable implements InventoryHolder, Container, Nameable{ return $ret; } - public function addAdditionalSpawnData(CompoundTag $nbt) : void{ + protected function addAdditionalSpawnData(CompoundTag $nbt) : void{ $nbt->setShort(self::TAG_BURN_TIME, $this->burnTime); $nbt->setShort(self::TAG_COOK_TIME, $this->cookTime); diff --git a/src/pocketmine/tile/ItemFrame.php b/src/pocketmine/tile/ItemFrame.php index 56ab6b7f2..4b573395f 100644 --- a/src/pocketmine/tile/ItemFrame.php +++ b/src/pocketmine/tile/ItemFrame.php @@ -90,7 +90,7 @@ class ItemFrame extends Spawnable{ $this->onChanged(); } - public function addAdditionalSpawnData(CompoundTag $nbt) : void{ + protected function addAdditionalSpawnData(CompoundTag $nbt) : void{ $nbt->setFloat(self::TAG_ITEM_DROP_CHANCE, $this->itemDropChance); $nbt->setByte(self::TAG_ITEM_ROTATION, $this->itemRotation); $nbt->setTag($this->item->nbtSerialize(-1, self::TAG_ITEM)); diff --git a/src/pocketmine/tile/Sign.php b/src/pocketmine/tile/Sign.php index 6e1f6e45e..bf28e8942 100644 --- a/src/pocketmine/tile/Sign.php +++ b/src/pocketmine/tile/Sign.php @@ -120,7 +120,7 @@ class Sign extends Spawnable{ return $this->text; } - public function addAdditionalSpawnData(CompoundTag $nbt) : void{ + protected function addAdditionalSpawnData(CompoundTag $nbt) : void{ $nbt->setString(self::TAG_TEXT_BLOB, implode("\n", $this->text)); } diff --git a/src/pocketmine/tile/Skull.php b/src/pocketmine/tile/Skull.php index 828c67d1a..4367991a6 100644 --- a/src/pocketmine/tile/Skull.php +++ b/src/pocketmine/tile/Skull.php @@ -65,7 +65,7 @@ class Skull extends Spawnable{ return $this->skullType; } - public function addAdditionalSpawnData(CompoundTag $nbt) : void{ + protected function addAdditionalSpawnData(CompoundTag $nbt) : void{ $nbt->setByte(self::TAG_SKULL_TYPE, $this->skullType); $nbt->setByte(self::TAG_ROT, $this->skullRotation); } diff --git a/src/pocketmine/tile/Spawnable.php b/src/pocketmine/tile/Spawnable.php index 1937c7d00..76c3f3c64 100644 --- a/src/pocketmine/tile/Spawnable.php +++ b/src/pocketmine/tile/Spawnable.php @@ -120,7 +120,7 @@ abstract class Spawnable extends Tile{ * * @param CompoundTag $nbt */ - abstract public function addAdditionalSpawnData(CompoundTag $nbt) : void; + abstract protected function addAdditionalSpawnData(CompoundTag $nbt) : void; /** * Called when a player updates a block entity's NBT data