mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 15:36:08 +00:00
Block: move a function
This commit is contained in:
@@ -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.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user