From 778eb5fb33f1826b05b3d1228aaa6c56530b24fb Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 12 Sep 2018 19:40:19 +0100 Subject: [PATCH] Block: Make getId(), getDamage(), setDamage() non-final In the future, these methods will be used to derive ID/meta on the fly from properties instead of using them internally. --- src/pocketmine/block/Block.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pocketmine/block/Block.php b/src/pocketmine/block/Block.php index 777c9311a..023c92dd8 100644 --- a/src/pocketmine/block/Block.php +++ b/src/pocketmine/block/Block.php @@ -96,7 +96,7 @@ class Block extends Position implements BlockIds, Metadatable{ /** * @return int */ - final public function getId() : int{ + public function getId() : int{ return $this->id; } @@ -113,14 +113,14 @@ class Block extends Position implements BlockIds, Metadatable{ /** * @return int */ - final public function getDamage() : int{ + public function getDamage() : int{ return $this->meta; } /** * @param int $meta */ - final public function setDamage(int $meta) : void{ + public function setDamage(int $meta) : void{ if($meta < 0 or $meta > 0xf){ throw new \InvalidArgumentException("Block damage values must be 0-15, not $meta"); }