PHP Class pocketmine\tile\Hopper

Inheritance: extends Spawnable, implements pocketmine\inventory\InventoryHolder, implements pocketmine\tile\Container, implements pocketmine\tile\Nameable
Afficher le fichier Open project: iTXTech/Genisys

Protected Properties

Свойство Type Description
$inventory pocketmine\inventory\HopperInventory
$isLocked boolean
$isPowered boolean

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
getSlotIndex ( $index ) : integer

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

activate() public méthode

public activate ( )

canUpdate() public méthode

public canUpdate ( )

checkLock() public méthode

public checkLock ( string $key )
$key string

close() public méthode

public close ( )

deactivate() public méthode

public deactivate ( )

getInventory() public méthode

public getInventory ( ) : HopperInventory
Résultat pocketmine\inventory\HopperInventory

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

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 ( )

hasLock() public méthode

public hasLock ( )

hasName() public méthode

public hasName ( )

onUpdate() public méthode

public onUpdate ( )

resetCooldownTicks() public méthode

public resetCooldownTicks ( )

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

setLock() public méthode

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

setName() public méthode

public setName ( $str )

Property Details

$inventory protected_oe property

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

$isLocked protected_oe property

protected bool $isLocked
Résultat boolean

$isPowered protected_oe property

protected bool $isPowered
Résultat boolean