PHP Class pocketmine\entity\Item

Inheritance: extends Entity
Mostra file Open project: iTXTech/Genisys Class Usage Examples

Public Properties

Property Type Description
$canCollide
$height
$length
$width

Protected Properties

Property Type Description
$drag
$gravity
$item pocketmine\item\Item
$owner
$pickupDelay
$thrower

Public Methods

Method Description
attack ( $damage, EntityDamageEvent $source )
canCollideWith ( Entity $entity )
getItem ( ) : Item
getOwner ( ) : string
getPickupDelay ( ) : integer
getThrower ( ) : string
onUpdate ( $currentTick )
saveNBT ( )
setOwner ( string $owner )
setPickupDelay ( integer $delay )
setThrower ( string $thrower )
spawnTo ( Player $player )

Protected Methods

Method Description
initEntity ( )

Method Details

attack() public method

public attack ( $damage, EntityDamageEvent $source )
$source pocketmine\event\entity\EntityDamageEvent

canCollideWith() public method

public canCollideWith ( Entity $entity )
$entity Entity

getItem() public method

public getItem ( ) : Item
return pocketmine\item\Item

getOwner() public method

public getOwner ( ) : string
return string

getPickupDelay() public method

public getPickupDelay ( ) : integer
return integer

getThrower() public method

public getThrower ( ) : string
return string

initEntity() protected method

protected initEntity ( )

onUpdate() public method

public onUpdate ( $currentTick )

saveNBT() public method

public saveNBT ( )

setOwner() public method

public setOwner ( string $owner )
$owner string

setPickupDelay() public method

public setPickupDelay ( integer $delay )
$delay integer

setThrower() public method

public setThrower ( string $thrower )
$thrower string

spawnTo() public method

public spawnTo ( Player $player )
$player pocketmine\Player

Property Details

$canCollide public_oe property

public $canCollide

$drag protected_oe property

protected $drag

$gravity protected_oe property

protected $gravity

$height public_oe property

public $height

$item protected_oe property

protected Item,pocketmine\item $item
return pocketmine\item\Item

$length public_oe property

public $length

$owner protected_oe property

protected $owner

$pickupDelay protected_oe property

protected $pickupDelay

$thrower protected_oe property

protected $thrower

$width public_oe property

public $width