PHP Class pocketmine\entity\Effect

ファイルを表示 Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Property Type Description
$ambient
$amplifier
$bad
$color
$duration
$effects Effect[]
$id integer
$name
$show

Public Methods

Method Description
__construct ( $id, $name, $r, $g, $b, $isBad = false )
add ( Entity $entity, $modify = false, Effect $oldEffect = null )
applyEffect ( Entity $entity )
canTick ( )
getAmplifier ( ) : integer
getColor ( )
getDuration ( )
getEffect ( integer $id )
getEffectByName ( $name )
getId ( )
getName ( ) : string
init ( )
isAmbient ( )
isBad ( )
isVisible ( )
remove ( Entity $entity )
setAmbient ( $ambient = true )
setAmplifier ( integer $amplifier )
setColor ( $r, $g, $b )
setDuration ( $ticks )
setVisible ( $bool )

Method Details

__construct() public method

public __construct ( $id, $name, $r, $g, $b, $isBad = false )

add() public method

public add ( Entity $entity, $modify = false, Effect $oldEffect = null )
$entity Entity
$oldEffect Effect

applyEffect() public method

public applyEffect ( Entity $entity )
$entity Entity

canTick() public method

public canTick ( )

getAmplifier() public method

public getAmplifier ( ) : integer
return integer

getColor() public method

public getColor ( )

getDuration() public method

public getDuration ( )

getEffect() public static method

public static getEffect ( integer $id )
$id integer

getEffectByName() public static method

public static getEffectByName ( $name )

getId() public method

public getId ( )

getName() public method

public getName ( ) : string
return string

init() public static method

public static init ( )

isAmbient() public method

public isAmbient ( )

isBad() public method

public isBad ( )

isVisible() public method

public isVisible ( )

remove() public method

public remove ( Entity $entity )
$entity Entity

setAmbient() public method

public setAmbient ( $ambient = true )

setAmplifier() public method

public setAmplifier ( integer $amplifier )
$amplifier integer

setColor() public method

public setColor ( $r, $g, $b )

setDuration() public method

public setDuration ( $ticks )

setVisible() public method

public setVisible ( $bool )

Property Details

$ambient protected_oe property

protected $ambient

$amplifier protected_oe property

protected $amplifier

$bad protected_oe property

protected $bad

$color protected_oe property

protected $color

$duration protected_oe property

protected $duration

$effects protected_oe static_oe property

protected static Effect[],pocketmine\entity $effects
return Effect[]

$id protected_oe property

protected int $id
return integer

$name protected_oe property

protected $name

$show protected_oe property

protected $show