I'm sure this is an easy one.. but after going trough almost all of pocketmine's tile classes, i couldn't figure out, whats the most efficient way of checking if a tile exists at the coordinates of a BlockBreakEvent. I have a plugin that creates a custom tile at the position of a placed block, to store some data, but now i want to be able to detect if a broken block has that tile, and if so to close() the tile, and retreive the data. To create the custom tile im extending pocketmine\tile\Spawnable. PS: Be as technical as you want
Oh also, i want to be able to do this even after a server restart, without saving cordinates to a file. Is there a method somewhere like gettile?
"$level->getTile" is exactly the method i was looking for! i guess i didn't look hard enough! Thank you!