PHP 클래스 pocketmine\tile\Chest

상속: extends Spawnable, implements pocketmine\inventory\InventoryHolder, implements pocketmine\tile\Container, implements pocketmine\tile\Nameable, use trait pocketmine\tile\ContainsItemsInSlotsTrait
파일 보기 프로젝트 열기: iTXTech/Genisys 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$doubleInventory pocketmine\inventory\DoubleChestInventory
$inventory pocketmine\inventory\ChestInventory

공개 메소드들

메소드 설명
__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 ( )

보호된 메소드들

메소드 설명
checkPairing ( )
getSlotIndex ( $index ) : integer

비공개 메소드들

메소드 설명
createPair ( Chest $tile )

메소드 상세

__construct() 공개 메소드

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

checkPairing() 보호된 메소드

protected checkPairing ( )

close() 공개 메소드

public close ( )

getDoubleInventory() 공개 메소드

public getDoubleInventory ( ) : DoubleChestInventory | null
리턴 pocketmine\inventory\DoubleChestInventory | null

getInventory() 공개 메소드

public getInventory ( ) : ChestInventory | DoubleChestInventory
리턴 pocketmine\inventory\ChestInventory | pocketmine\inventory\DoubleChestInventory

getItem() 공개 메소드

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

getName() 공개 메소드

public getName ( ) : string
리턴 string

getPair() 공개 메소드

public getPair ( ) : Chest
리턴 Chest

getRealInventory() 공개 메소드

public getRealInventory ( ) : ChestInventory
리턴 pocketmine\inventory\ChestInventory

getSize() 공개 메소드

public getSize ( ) : integer
리턴 integer

getSlotIndex() 보호된 메소드

protected getSlotIndex ( $index ) : integer
$index
리턴 integer

getSpawnCompound() 공개 메소드

public getSpawnCompound ( )

hasName() 공개 메소드

public hasName ( )

isPaired() 공개 메소드

public isPaired ( )

pairWith() 공개 메소드

public pairWith ( Chest $tile )
$tile Chest

saveNBT() 공개 메소드

public saveNBT ( )

setItem() 공개 메소드

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

setName() 공개 메소드

public setName ( $str )

unpair() 공개 메소드

public unpair ( )

프로퍼티 상세

$doubleInventory 보호되어 있는 프로퍼티

protected DoubleChestInventory,pocketmine\inventory $doubleInventory
리턴 pocketmine\inventory\DoubleChestInventory

$inventory 보호되어 있는 프로퍼티

protected ChestInventory,pocketmine\inventory $inventory
리턴 pocketmine\inventory\ChestInventory