mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Block: make internal methods private (they are no longer used outside of Block)
This commit is contained in:
parent
027d8f7377
commit
e40774d62f
@ -190,10 +190,7 @@ class Block{
|
||||
return $this->requiredStateDataBits;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final public function decodeTypeData(int $data) : void{
|
||||
private function decodeTypeData(int $data) : void{
|
||||
$reader = new RuntimeDataReader($this->requiredTypeDataBits, $data);
|
||||
|
||||
$this->describeType($reader);
|
||||
@ -222,10 +219,7 @@ class Block{
|
||||
$this->decodeStateData($reader->readInt($this->requiredStateDataBits));
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final public function computeTypeData() : int{
|
||||
private function computeTypeData() : int{
|
||||
$writer = new RuntimeDataWriter($this->requiredTypeDataBits);
|
||||
|
||||
$this->describeType($writer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user