... blame PhpStorm EAP

This commit is contained in:
Dylan K. Taylor 2017-08-10 18:04:44 +01:00
parent e8bd0c3e09
commit 0c798222a4
2 changed files with 6 additions and 5 deletions

View File

@ -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;

View File

@ -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(){