added some typedocs

shut up PhpStorm
This commit is contained in:
Dylan K. Taylor
2017-08-21 17:17:14 +01:00
parent 672b7610a9
commit d2ace6bdd2
2 changed files with 3 additions and 0 deletions

View File

@ -729,6 +729,7 @@ class Item implements ItemIds, \JsonSerializable{
$tag = $this->getNamedTagEntry("display");
if($tag instanceof CompoundTag and isset($tag->Lore) and $tag->Lore instanceof ListTag){
$lines = [];
/** @var StringTag $line */
foreach($tag->Lore->getValue() as $line){
$lines[] = $line->getValue();
}
@ -1121,6 +1122,7 @@ class Item implements ItemIds, \JsonSerializable{
}
if(isset($tag->tag) and $tag->tag instanceof CompoundTag){
/** @var CompoundTag $t */
$t = clone $tag->tag;
$t->setName("");
$item->setNamedTag($t);