PHP Class pocketmine\tile\ItemFrame

Inheritance: extends Spawnable
显示文件 Open project: iTXTech/Genisys

Public Methods

Method Description
__construct ( pocketmine\level\format\FullChunk $chunk, CompoundTag $nbt )
getItem ( )
getItemDropChance ( )
getItemRotation ( )
getName ( ) : string
getSpawnCompound ( )
setItem ( Item $item, boolean $setChanged = true )
setItemDropChance ( float $chance = 1 )
setItemRotation ( integer $itemRotation )

Private Methods

Method Description
setChanged ( )

Method Details

__construct() public method

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

getItem() public method

public getItem ( )

getItemDropChance() public method

public getItemDropChance ( )

getItemRotation() public method

public getItemRotation ( )

getName() public method

public getName ( ) : string
return string

getSpawnCompound() public method

public getSpawnCompound ( )

setItem() public method

public setItem ( Item $item, boolean $setChanged = true )
$item pocketmine\item\Item
$setChanged boolean

setItemDropChance() public method

public setItemDropChance ( float $chance = 1 )
$chance float

setItemRotation() public method

public setItemRotation ( integer $itemRotation )
$itemRotation integer