mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +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;
|
return $this->requiredStateDataBits;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function decodeTypeData(int $data) : void{
|
||||||
* @internal
|
|
||||||
*/
|
|
||||||
final public function decodeTypeData(int $data) : void{
|
|
||||||
$reader = new RuntimeDataReader($this->requiredTypeDataBits, $data);
|
$reader = new RuntimeDataReader($this->requiredTypeDataBits, $data);
|
||||||
|
|
||||||
$this->describeType($reader);
|
$this->describeType($reader);
|
||||||
@ -222,10 +219,7 @@ class Block{
|
|||||||
$this->decodeStateData($reader->readInt($this->requiredStateDataBits));
|
$this->decodeStateData($reader->readInt($this->requiredStateDataBits));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
private function computeTypeData() : int{
|
||||||
* @internal
|
|
||||||
*/
|
|
||||||
final public function computeTypeData() : int{
|
|
||||||
$writer = new RuntimeDataWriter($this->requiredTypeDataBits);
|
$writer = new RuntimeDataWriter($this->requiredTypeDataBits);
|
||||||
|
|
||||||
$this->describeType($writer);
|
$this->describeType($writer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user