PHP 클래스 pocketmine\entity\Attribute

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

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes Attribute[]
$currentValue
$defaultValue
$desynchronized
$maxValue
$minValue
$name
$shouldSend

공개 메소드들

메소드 설명
addAttribute ( integer $id, string $name, float $minValue, float $maxValue, float $defaultValue, boolean $shouldSend = true ) : Attribute
getAttribute ( $id ) : null | Attribute
getAttributeByName ( $name ) : null | Attribute
getDefaultValue ( )
getId ( )
getMaxValue ( )
getMinValue ( )
getName ( )
getValue ( )
init ( )
isDesynchronized ( ) : boolean
isSyncable ( )
markSynchronized ( boolean $synced = true )
setDefaultValue ( $defaultValue )
setMaxValue ( $maxValue )
setMinValue ( $minValue )
setValue ( $value, boolean $fit = true, boolean $shouldSend = false )

비공개 메소드들

메소드 설명
__construct ( $id, $name, $minValue, $maxValue, $defaultValue, $shouldSend = true )

메소드 상세

addAttribute() 공개 정적인 메소드

public static addAttribute ( integer $id, string $name, float $minValue, float $maxValue, float $defaultValue, boolean $shouldSend = true ) : Attribute
$id integer
$name string
$minValue float
$maxValue float
$defaultValue float
$shouldSend boolean
리턴 Attribute

getAttribute() 공개 정적인 메소드

public static getAttribute ( $id ) : null | Attribute
$id
리턴 null | Attribute

getAttributeByName() 공개 정적인 메소드

public static getAttributeByName ( $name ) : null | Attribute
$name
리턴 null | Attribute

getDefaultValue() 공개 메소드

public getDefaultValue ( )

getId() 공개 메소드

public getId ( )

getMaxValue() 공개 메소드

public getMaxValue ( )

getMinValue() 공개 메소드

public getMinValue ( )

getName() 공개 메소드

public getName ( )

getValue() 공개 메소드

public getValue ( )

init() 공개 정적인 메소드

public static init ( )

isDesynchronized() 공개 메소드

public isDesynchronized ( ) : boolean
리턴 boolean

isSyncable() 공개 메소드

public isSyncable ( )

markSynchronized() 공개 메소드

public markSynchronized ( boolean $synced = true )
$synced boolean

setDefaultValue() 공개 메소드

public setDefaultValue ( $defaultValue )

setMaxValue() 공개 메소드

public setMaxValue ( $maxValue )

setMinValue() 공개 메소드

public setMinValue ( $minValue )

setValue() 공개 메소드

public setValue ( $value, boolean $fit = true, boolean $shouldSend = false )
$fit boolean
$shouldSend boolean

프로퍼티 상세

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

protected static Attribute[],pocketmine\entity $attributes
리턴 Attribute[]

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

protected $currentValue

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

protected $defaultValue

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

protected $desynchronized

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

protected $maxValue

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

protected $minValue

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

protected $name

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

protected $shouldSend