mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-08 04:38:35 +00:00
Changed potentially misleading parameter name in CompoundTag->getTagValue()
This commit is contained in:
parent
48fefae920
commit
747477dfcf
@ -154,13 +154,13 @@ class CompoundTag extends NamedTag implements \ArrayAccess{
|
|||||||
* tag is not of type $expectedType, an exception will be thrown.
|
* tag is not of type $expectedType, an exception will be thrown.
|
||||||
*
|
*
|
||||||
* @param string $name
|
* @param string $name
|
||||||
* @param string $expectedType
|
* @param string $expectedClass
|
||||||
* @param mixed $default
|
* @param mixed $default
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function getTagValue(string $name, string $expectedType, $default = null){
|
public function getTagValue(string $name, string $expectedClass, $default = null){
|
||||||
$tag = $this->getTag($name, $expectedType);
|
$tag = $this->getTag($name, $expectedClass);
|
||||||
if($tag !== null){
|
if($tag !== null){
|
||||||
return $tag->getValue();
|
return $tag->getValue();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user