pocketmine\tile\Dropper::getSpawnCompound PHP Метод

getSpawnCompound() публичный Метод

public getSpawnCompound ( )
    public function getSpawnCompound()
    {
        $c = new CompoundTag("", [new StringTag("id", Tile::DROPPER), new IntTag("x", (int) $this->x), new IntTag("y", (int) $this->y), new IntTag("z", (int) $this->z)]);
        if ($this->hasName()) {
            $c->CustomName = $this->namedtag->CustomName;
        }
        return $c;
    }