Here's a good place to start looking: https://github.com/pmmp/PocketMine-...a0bd9f9c90/src/pocketmine/tile/Chest.php#L191