mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
McRegion: Make nbtDeserialize() and nbtSerialize() protected
Not really sure why these are still exposed publicly.
This commit is contained in:
parent
97bfcf6e71
commit
ae2e1fdd5a
@ -39,7 +39,7 @@ class Anvil extends McRegion{
|
||||
|
||||
public const REGION_FILE_EXTENSION = "mca";
|
||||
|
||||
public function nbtSerialize(Chunk $chunk) : string{
|
||||
protected function nbtSerialize(Chunk $chunk) : string{
|
||||
$nbt = new CompoundTag("Level", []);
|
||||
$nbt->setInt("xPos", $chunk->getX());
|
||||
$nbt->setInt("zPos", $chunk->getZ());
|
||||
@ -97,7 +97,7 @@ class Anvil extends McRegion{
|
||||
]);
|
||||
}
|
||||
|
||||
public function nbtDeserialize(string $data){
|
||||
protected function nbtDeserialize(string $data){
|
||||
$nbt = new BigEndianNBTStream();
|
||||
try{
|
||||
$chunk = $nbt->readCompressed($data);
|
||||
|
@ -49,7 +49,7 @@ class McRegion extends BaseLevelProvider{
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function nbtSerialize(Chunk $chunk) : string{
|
||||
protected function nbtSerialize(Chunk $chunk) : string{
|
||||
$nbt = new CompoundTag("Level", []);
|
||||
$nbt->setInt("xPos", $chunk->getX());
|
||||
$nbt->setInt("zPos", $chunk->getZ());
|
||||
@ -109,7 +109,7 @@ class McRegion extends BaseLevelProvider{
|
||||
*
|
||||
* @return Chunk|null
|
||||
*/
|
||||
public function nbtDeserialize(string $data){
|
||||
protected function nbtDeserialize(string $data){
|
||||
$nbt = new BigEndianNBTStream();
|
||||
try{
|
||||
$chunk = $nbt->readCompressed($data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user