|
PocketMine-MP 5.36.1 git-eaa7c4834c8fe2f379d24e7f0ee6cc63cfb18ccc
|
Inheritance diagram for pocketmine\block\utils\MenuAccessor:
Collaboration diagram for pocketmine\block\utils\MenuAccessor:Public Member Functions | |
| isOpeningObstructed () | |
| openToUnchecked (Player $player) | |
Blocks which open a menu when interacted with This could be a container menu, or a menu that otherwise deals with items, such as a crafting menu
Definition at line 32 of file MenuAccessor.php.
| pocketmine\block\utils\MenuAccessor::isOpeningObstructed | ( | ) |
Returns whether the block's ability to open the menu is currently obstructed (e.g. by nearby blocks).
Implemented in pocketmine\block\Chest, pocketmine\block\EnderChest, and pocketmine\block\ShulkerBox.
| pocketmine\block\utils\MenuAccessor::openToUnchecked | ( | Player | $player | ) |
Opens the menu to the player. Note: No preconditions are checked. Do not check for obstruction or locks here.
Returns true if successful, false otherwise (e.g. event cancelled, container missing)