PocketMine-MP 5.33.2 git-1133d49c924b4358c79d44eeb97dcbf56cb4d1eb
|
Public Member Functions | |
__construct (private int $size=9) | |
getSelectedIndex () | |
getSelectedIndexChangeListeners () | |
getSize () | |
isHotbarSlot (int $slot) | |
setSelectedIndex (int $hotbarSlot) | |
Protected Attributes | |
int | $selectedIndex = 0 |
ObjectSet | $selectedIndexChangeListeners |
Definition at line 28 of file Hotbar.php.
pocketmine\inventory\Hotbar::__construct | ( | private int | $size = 9 | ) |
Definition at line 37 of file Hotbar.php.
pocketmine\inventory\Hotbar::getSelectedIndex | ( | ) |
Returns the hotbar slot number the holder is currently holding.
Definition at line 59 of file Hotbar.php.
pocketmine\inventory\Hotbar::getSelectedIndexChangeListeners | ( | ) |
Definition at line 85 of file Hotbar.php.
pocketmine\inventory\Hotbar::getSize | ( | ) |
Returns the number of slots in the hotbar.
Definition at line 90 of file Hotbar.php.
pocketmine\inventory\Hotbar::isHotbarSlot | ( | int | $slot | ) |
Definition at line 43 of file Hotbar.php.
pocketmine\inventory\Hotbar::setSelectedIndex | ( | int | $hotbarSlot | ) |
Sets which hotbar slot the player is currently loading.
int | $hotbarSlot | 0-8 index of the hotbar slot to hold |
InvalidArgumentException if the hotbar slot is out of range
Definition at line 70 of file Hotbar.php.
|
protected |
Definition at line 29 of file Hotbar.php.
|
protected |
Definition at line 35 of file Hotbar.php.