mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +00:00
added some typedocs
shut up PhpStorm
This commit is contained in:
parent
672b7610a9
commit
d2ace6bdd2
@ -729,6 +729,7 @@ class Item implements ItemIds, \JsonSerializable{
|
|||||||
$tag = $this->getNamedTagEntry("display");
|
$tag = $this->getNamedTagEntry("display");
|
||||||
if($tag instanceof CompoundTag and isset($tag->Lore) and $tag->Lore instanceof ListTag){
|
if($tag instanceof CompoundTag and isset($tag->Lore) and $tag->Lore instanceof ListTag){
|
||||||
$lines = [];
|
$lines = [];
|
||||||
|
/** @var StringTag $line */
|
||||||
foreach($tag->Lore->getValue() as $line){
|
foreach($tag->Lore->getValue() as $line){
|
||||||
$lines[] = $line->getValue();
|
$lines[] = $line->getValue();
|
||||||
}
|
}
|
||||||
@ -1121,6 +1122,7 @@ class Item implements ItemIds, \JsonSerializable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(isset($tag->tag) and $tag->tag instanceof CompoundTag){
|
if(isset($tag->tag) and $tag->tag instanceof CompoundTag){
|
||||||
|
/** @var CompoundTag $t */
|
||||||
$t = clone $tag->tag;
|
$t = clone $tag->tag;
|
||||||
$t->setName("");
|
$t->setName("");
|
||||||
$item->setNamedTag($t);
|
$item->setNamedTag($t);
|
||||||
|
@ -1887,6 +1887,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
for($x = $minX; $x <= $maxX; ++$x){
|
for($x = $minX; $x <= $maxX; ++$x){
|
||||||
for($z = $minZ; $z <= $maxZ; ++$z){
|
for($z = $minZ; $z <= $maxZ; ++$z){
|
||||||
foreach($this->getChunkEntities($x, $z) as $ent){
|
foreach($this->getChunkEntities($x, $z) as $ent){
|
||||||
|
/** @var Entity|null $entity */
|
||||||
if(($entity === null or ($ent !== $entity and $entity->canCollideWith($ent))) and $ent->boundingBox->intersectsWith($bb)){
|
if(($entity === null or ($ent !== $entity and $entity->canCollideWith($ent))) and $ent->boundingBox->intersectsWith($bb)){
|
||||||
$nearby[] = $ent;
|
$nearby[] = $ent;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user