pocketmine\tile\FlowerPot::setFlowerPotData PHP Method

setFlowerPotData() public method

public setFlowerPotData ( $item, $data )
    public function setFlowerPotData($item, $data)
    {
        $this->namedtag->item = new ShortTag("item", (int) $item);
        $this->namedtag->mData = new IntTag("mData", (int) $data);
        $this->spawnToAll();
        if ($this->chunk) {
            $this->chunk->setChanged();
            $this->level->clearChunkCache($this->chunk->getX(), $this->chunk->getZ());
        }
        return true;
    }