pocketmine\tile\Furnace::getSpawnCompound PHP Method

getSpawnCompound() public method

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