Block: move a function

This commit is contained in:
Dylan K. Taylor 2019-03-23 15:01:35 +00:00
parent 53bb05a6a7
commit 765c5963a8

View File

@ -136,6 +136,16 @@ class Block extends Position implements BlockIds, Metadatable{
return $this->idInfo->getVariant() | $stateMeta; 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{ protected function writeStateToMeta() : int{
return 0; 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. * Returns whether the given block has an equivalent type to this one. This compares base legacy ID and variant.
* *