22declare(strict_types=1);
28use pocketmine\block\utils\FacesOppositePlacingPlayerTrait;
29use pocketmine\block\utils\SupportType;
37 use FacesOppositePlacingPlayerTrait;
52 return SupportType::NONE;
56 if($player instanceof
Player){
57 $enderChest = $this->position->getWorld()->getTile($this->position);
58 if($enderChest instanceof TileEnderChest && $this->getSide(Facing::UP)->isTransparent()){
59 $enderChest->setViewerCount($enderChest->getViewerCount() + 1);
60 $player->setCurrentWindow(
new EnderChestInventory($this->position, $player->getEnderInventory()));
getSupportType(int $facing)
recalculateCollisionBoxes()
getDropsForCompatibleTool(Item $item)
onInteract(Item $item, int $face, Vector3 $clickVector, ?Player $player=null, array &$returnedItems=[])