pocketmine\level\Level::addTile PHP Method

addTile() public method

public addTile ( Tile $tile )
$tile pocketmine\tile\Tile
    public function addTile(Tile $tile)
    {
        if ($tile->getLevel() !== $this) {
            throw new LevelException("Invalid Tile level");
        }
        $this->tiles[$tile->getId()] = $tile;
        $this->clearChunkCache($tile->getX() >> 4, $tile->getZ() >> 4);
    }
Level