PHP Class pocketmine\tile\Furnace

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

Protected Properties

Свойство Type Description
$inventory pocketmine\inventory\FurnaceInventory

Méthodes publiques

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

checkFuel() protected méthode

protected checkFuel ( Item $fuel )
$fuel pocketmine\item\Item

close() public méthode

public close ( )

getInventory() public méthode

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

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

hasName() public méthode

public hasName ( )

onUpdate() public méthode

public onUpdate ( )

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 FurnaceInventory,pocketmine\inventory $inventory
Résultat pocketmine\inventory\FurnaceInventory