PHP 클래스 pocketmine\entity\Effect

파일 보기 프로젝트 열기: iTXTech/Genisys 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$ambient
$amplifier
$bad
$color
$duration
$effects Effect[]
$id integer
$name
$show

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

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

add() 공개 메소드

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

applyEffect() 공개 메소드

public applyEffect ( Entity $entity )
$entity Entity

canTick() 공개 메소드

public canTick ( )

getAmplifier() 공개 메소드

public getAmplifier ( ) : integer
리턴 integer

getColor() 공개 메소드

public getColor ( )

getDuration() 공개 메소드

public getDuration ( )

getEffect() 공개 정적인 메소드

public static getEffect ( integer $id )
$id integer

getEffectByName() 공개 정적인 메소드

public static getEffectByName ( $name )

getId() 공개 메소드

public getId ( )

getName() 공개 메소드

public getName ( ) : string
리턴 string

init() 공개 정적인 메소드

public static init ( )

isAmbient() 공개 메소드

public isAmbient ( )

isBad() 공개 메소드

public isBad ( )

isVisible() 공개 메소드

public isVisible ( )

remove() 공개 메소드

public remove ( Entity $entity )
$entity Entity

setAmbient() 공개 메소드

public setAmbient ( $ambient = true )

setAmplifier() 공개 메소드

public setAmplifier ( integer $amplifier )
$amplifier integer

setColor() 공개 메소드

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

setDuration() 공개 메소드

public setDuration ( $ticks )

setVisible() 공개 메소드

public setVisible ( $bool )

프로퍼티 상세

$ambient 보호되어 있는 프로퍼티

protected $ambient

$amplifier 보호되어 있는 프로퍼티

protected $amplifier

$bad 보호되어 있는 프로퍼티

protected $bad

$color 보호되어 있는 프로퍼티

protected $color

$duration 보호되어 있는 프로퍼티

protected $duration

$effects 보호되어 있는 정적으로 프로퍼티

protected static Effect[],pocketmine\entity $effects
리턴 Effect[]

$id 보호되어 있는 프로퍼티

protected int $id
리턴 integer

$name 보호되어 있는 프로퍼티

protected $name

$show 보호되어 있는 프로퍼티

protected $show