PHP Class pocketmine\tile\Dropper

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\DropperInventory
$nextUpdate

Méthodes publiques

Méthode Description
__construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt )
activate ( )
close ( )
getInventory ( ) : DropperInventory
getItem ( integer $index ) : Item This method should not be used by plugins, use the Inventory
getMotion ( )
getName ( ) : string
getSize ( ) : integer
getSpawnCompound ( )
hasName ( )
saveNBT ( )
setItem ( integer $index, Item $item ) : boolean This method should not be used by plugins, use the Inventory
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 ( )

close() public méthode

public close ( )

getInventory() public méthode

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

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

getMotion() public méthode

public getMotion ( )

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

hasName() public méthode

public hasName ( )

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 )

Property Details

$inventory protected_oe property

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

$nextUpdate protected_oe property

protected $nextUpdate