mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
Block: make internal methods private (they are no longer used outside of Block)
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user