diff --git a/src/pocketmine/block/Block.php b/src/pocketmine/block/Block.php index 9e9db8203..11fe307f8 100644 --- a/src/pocketmine/block/Block.php +++ b/src/pocketmine/block/Block.php @@ -136,6 +136,16 @@ class Block extends Position implements BlockIds, Metadatable{ return $this->idInfo->getVariant() | $stateMeta; } + + /** + * Returns a bitmask used to extract state bits from block metadata. + * + * @return int + */ + public function getStateBitmask() : int{ + return 0; + } + protected function writeStateToMeta() : int{ return 0; } @@ -176,15 +186,6 @@ class Block extends Position implements BlockIds, Metadatable{ } } - /** - * Returns a bitmask used to extract state bits from block metadata. - * - * @return int - */ - public function getStateBitmask() : int{ - return 0; - } - /** * Returns whether the given block has an equivalent type to this one. This compares base legacy ID and variant. *