mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
... blame PhpStorm EAP
This commit is contained in:
parent
e8bd0c3e09
commit
0c798222a4
@ -846,7 +846,7 @@ class Block extends Position implements BlockIds, Metadatable{
|
||||
|
||||
public function hasMetadata(string $metadataKey) : bool{
|
||||
if($this->getLevel() instanceof Level){
|
||||
return $this->getLevel()->getBlockMetadata()->hasMetadata($this, $metadataKey);
|
||||
return $this->getLevel()->getBlockMetadata()->hasMetadata($this, $metadataKey);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -1872,8 +1872,9 @@ abstract class Entity extends Location implements Metadatable{
|
||||
$this->close();
|
||||
}
|
||||
|
||||
public function setMetadata(string $metadataKey, MetadataValue $metadataValue){
|
||||
$this->server->getEntityMetadata()->setMetadata($this, $metadataKey, $metadataValue);
|
||||
|
||||
public function setMetadata(string $metadataKey, MetadataValue $newMetadataValue){
|
||||
$this->server->getEntityMetadata()->setMetadata($this, $metadataKey, $newMetadataValue);
|
||||
}
|
||||
|
||||
public function getMetadata(string $metadataKey){
|
||||
@ -1884,8 +1885,8 @@ abstract class Entity extends Location implements Metadatable{
|
||||
return $this->server->getEntityMetadata()->hasMetadata($this, $metadataKey);
|
||||
}
|
||||
|
||||
public function removeMetadata(string $metadataKey, Plugin $plugin){
|
||||
$this->server->getEntityMetadata()->removeMetadata($this, $metadataKey, $plugin);
|
||||
public function removeMetadata(string $metadataKey, Plugin $owningPlugin){
|
||||
$this->server->getEntityMetadata()->removeMetadata($this, $metadataKey, $owningPlugin);
|
||||
}
|
||||
|
||||
public function __toString(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user