Свойство | Type | Description | |
---|---|---|---|
$attributes | |||
$currentValue | |||
$defaultValue | |||
$desynchronized | |||
$maxValue | |||
$minValue | |||
$name | |||
$shouldSend |
Méthode | Description | |
---|---|---|
addAttribute ( integer $id, string $name, float $minValue, float $maxValue, float $defaultValue, boolean $shouldSend = true ) : |
||
getAttribute ( $id ) : null | |
||
getAttributeByName ( $name ) : null | |
||
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 ) |
Méthode | Description | |
---|---|---|
__construct ( $id, $name, $minValue, $maxValue, $defaultValue, $shouldSend = true ) |
public static getAttribute ( $id ) : null | |
||
$id | ||
Résultat | null | |
public static getAttributeByName ( $name ) : null | |
||
$name | ||
Résultat | null | |
public markSynchronized ( boolean $synced = true ) | ||
$synced | boolean |
protected static Attribute[],pocketmine\entity $attributes | ||
Résultat |