PHP 클래스 pocketmine\tile\Hopper

상속: extends Spawnable, implements pocketmine\inventory\InventoryHolder, implements pocketmine\tile\Container, implements pocketmine\tile\Nameable
파일 보기 프로젝트 열기: iTXTech/Genisys

보호된 프로퍼티들

프로퍼티 타입 설명
$inventory pocketmine\inventory\HopperInventory
$isLocked boolean
$isPowered boolean

공개 메소드들

메소드 설명
__construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt )
activate ( )
canUpdate ( )
checkLock ( string $key )
close ( )
deactivate ( )
getInventory ( ) : HopperInventory
getItem ( integer $index ) : Item This method should not be used by plugins, use the Inventory
getName ( ) : string
getSize ( ) : integer
getSpawnCompound ( )
hasLock ( )
hasName ( )
onUpdate ( )
resetCooldownTicks ( )
saveNBT ( )
setItem ( integer $index, Item $item ) : boolean This method should not be used by plugins, use the Inventory
setLock ( string $itemName = "" )
setName ( $str )

보호된 메소드들

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

메소드 상세

__construct() 공개 메소드

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

activate() 공개 메소드

public activate ( )

canUpdate() 공개 메소드

public canUpdate ( )

checkLock() 공개 메소드

public checkLock ( string $key )
$key string

close() 공개 메소드

public close ( )

deactivate() 공개 메소드

public deactivate ( )

getInventory() 공개 메소드

public getInventory ( ) : HopperInventory
리턴 pocketmine\inventory\HopperInventory

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

getSize() 공개 메소드

public getSize ( ) : integer
리턴 integer

getSlotIndex() 보호된 메소드

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

getSpawnCompound() 공개 메소드

public getSpawnCompound ( )

hasLock() 공개 메소드

public hasLock ( )

hasName() 공개 메소드

public hasName ( )

onUpdate() 공개 메소드

public onUpdate ( )

resetCooldownTicks() 공개 메소드

public resetCooldownTicks ( )

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

setLock() 공개 메소드

public setLock ( string $itemName = "" )
$itemName string

setName() 공개 메소드

public setName ( $str )

프로퍼티 상세

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

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

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

protected bool $isLocked
리턴 boolean

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

protected bool $isPowered
리턴 boolean