PHP Class pocketmine\tile\Chest

Inheritance: extends Spawnable, implements pocketmine\inventory\InventoryHolder, implements pocketmine\tile\Container, implements pocketmine\tile\Nameable, use trait pocketmine\tile\ContainsItemsInSlotsTrait
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Свойство Type Description
$doubleInventory pocketmine\inventory\DoubleChestInventory
$inventory pocketmine\inventory\ChestInventory

Méthodes publiques

Méthode Description
__construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt )
close ( )
getDoubleInventory ( ) : DoubleChestInventory | null
getInventory ( ) : ChestInventory | DoubleChestInventory
getItem ( integer $index ) : Item This method should not be used by plugins, use the Inventory
getName ( ) : string
getPair ( ) : Chest
getRealInventory ( ) : ChestInventory
getSize ( ) : integer
getSpawnCompound ( )
hasName ( )
isPaired ( )
pairWith ( Chest $tile )
saveNBT ( )
setItem ( integer $index, Item $item ) : boolean This method should not be used by plugins, use the Inventory
setName ( $str )
unpair ( )

Méthodes protégées

Méthode Description
checkPairing ( )
getSlotIndex ( $index ) : integer

Private Methods

Méthode Description
createPair ( Chest $tile )

Method Details

__construct() public méthode

public __construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt )
$chunk pocketmine\level\format\FullChunk
$nbt pocketmine\nbt\tag\CompoundTag

checkPairing() protected méthode

protected checkPairing ( )

close() public méthode

public close ( )

getDoubleInventory() public méthode

public getDoubleInventory ( ) : DoubleChestInventory | null
Résultat pocketmine\inventory\DoubleChestInventory | null

getInventory() public méthode

public getInventory ( ) : ChestInventory | DoubleChestInventory
Résultat pocketmine\inventory\ChestInventory | pocketmine\inventory\DoubleChestInventory

getItem() public méthode

This method should not be used by plugins, use the Inventory
public getItem ( integer $index ) : Item
$index integer
Résultat pocketmine\item\Item

getName() public méthode

public getName ( ) : string
Résultat string

getPair() public méthode

public getPair ( ) : Chest
Résultat Chest

getRealInventory() public méthode

public getRealInventory ( ) : ChestInventory
Résultat pocketmine\inventory\ChestInventory

getSize() public méthode

public getSize ( ) : integer
Résultat integer

getSlotIndex() protected méthode

protected getSlotIndex ( $index ) : integer
$index
Résultat integer

getSpawnCompound() public méthode

public getSpawnCompound ( )

hasName() public méthode

public hasName ( )

isPaired() public méthode

public isPaired ( )

pairWith() public méthode

public pairWith ( Chest $tile )
$tile Chest

saveNBT() public méthode

public saveNBT ( )

setItem() public méthode

This method should not be used by plugins, use the Inventory
public setItem ( integer $index, Item $item ) : boolean
$index integer
$item pocketmine\item\Item
Résultat boolean

setName() public méthode

public setName ( $str )

unpair() public méthode

public unpair ( )

Property Details

$doubleInventory protected_oe property

protected DoubleChestInventory,pocketmine\inventory $doubleInventory
Résultat pocketmine\inventory\DoubleChestInventory

$inventory protected_oe property

protected ChestInventory,pocketmine\inventory $inventory
Résultat pocketmine\inventory\ChestInventory