PocketMine-MP 5.33.2 git-1133d49c924b4358c79d44eeb97dcbf56cb4d1eb
Loading...
Searching...
No Matches
pocketmine\player\PlayerInventoryWindow Class Reference
+ Inheritance diagram for pocketmine\player\PlayerInventoryWindow:
+ Collaboration diagram for pocketmine\player\PlayerInventoryWindow:

Public Member Functions

 __construct (Player $viewer, Inventory $inventory, private int $type)
 
 getInventory ()
 
 getType ()
 
 getViewer ()
 
 onClose ()
 
 onOpen ()
 

Public Attributes

const TYPE_ARMOR = 2
 
const TYPE_CRAFTING = 4
 
const TYPE_CURSOR = 3
 
const TYPE_INVENTORY = 0
 
const TYPE_OFFHAND = 1
 

Detailed Description

Window for player-owned inventories. The player can access these at all times.

Definition at line 31 of file PlayerInventoryWindow.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\player\PlayerInventoryWindow::__construct ( Player $viewer,
Inventory $inventory,
private int $type )

Definition at line 39 of file PlayerInventoryWindow.php.

Member Function Documentation

◆ getInventory()

pocketmine\player\InventoryWindow::getInventory ( )
inherited

Definition at line 39 of file InventoryWindow.php.

◆ getType()

pocketmine\player\PlayerInventoryWindow::getType ( )

Returns the type of player inventory in this window.

Definition at line 50 of file PlayerInventoryWindow.php.

◆ getViewer()

pocketmine\player\InventoryWindow::getViewer ( )
inherited

Definition at line 35 of file InventoryWindow.php.

◆ onClose()

pocketmine\player\InventoryWindow::onClose ( )
inherited

Definition at line 47 of file InventoryWindow.php.

◆ onOpen()

pocketmine\player\InventoryWindow::onOpen ( )
inherited

Definition at line 43 of file InventoryWindow.php.

Member Data Documentation

◆ TYPE_ARMOR

const pocketmine\player\PlayerInventoryWindow::TYPE_ARMOR = 2

Definition at line 35 of file PlayerInventoryWindow.php.

◆ TYPE_CRAFTING

const pocketmine\player\PlayerInventoryWindow::TYPE_CRAFTING = 4

Definition at line 37 of file PlayerInventoryWindow.php.

◆ TYPE_CURSOR

const pocketmine\player\PlayerInventoryWindow::TYPE_CURSOR = 3

Definition at line 36 of file PlayerInventoryWindow.php.

◆ TYPE_INVENTORY

const pocketmine\player\PlayerInventoryWindow::TYPE_INVENTORY = 0

Definition at line 33 of file PlayerInventoryWindow.php.

◆ TYPE_OFFHAND

const pocketmine\player\PlayerInventoryWindow::TYPE_OFFHAND = 1

Definition at line 34 of file PlayerInventoryWindow.php.


The documentation for this class was generated from the following file: