PHP Class pocketmine\entity\Attribute

Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Свойство Type Description
$attributes Attribute[]
$currentValue
$defaultValue
$desynchronized
$maxValue
$minValue
$name
$shouldSend

Méthodes publiques

Méthode Description
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 )

Private Methods

Méthode Description
__construct ( $id, $name, $minValue, $maxValue, $defaultValue, $shouldSend = true )

Method Details

addAttribute() public static méthode

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
Résultat Attribute

getAttribute() public static méthode

public static getAttribute ( $id ) : null | Attribute
$id
Résultat null | Attribute

getAttributeByName() public static méthode

public static getAttributeByName ( $name ) : null | Attribute
$name
Résultat null | Attribute

getDefaultValue() public méthode

public getDefaultValue ( )

getId() public méthode

public getId ( )

getMaxValue() public méthode

public getMaxValue ( )

getMinValue() public méthode

public getMinValue ( )

getName() public méthode

public getName ( )

getValue() public méthode

public getValue ( )

init() public static méthode

public static init ( )

isDesynchronized() public méthode

public isDesynchronized ( ) : boolean
Résultat boolean

isSyncable() public méthode

public isSyncable ( )

markSynchronized() public méthode

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

setDefaultValue() public méthode

public setDefaultValue ( $defaultValue )

setMaxValue() public méthode

public setMaxValue ( $maxValue )

setMinValue() public méthode

public setMinValue ( $minValue )

setValue() public méthode

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

Property Details

$attributes protected_oe static_oe property

protected static Attribute[],pocketmine\entity $attributes
Résultat Attribute[]

$currentValue protected_oe property

protected $currentValue

$defaultValue protected_oe property

protected $defaultValue

$desynchronized protected_oe property

protected $desynchronized

$maxValue protected_oe property

protected $maxValue

$minValue protected_oe property

protected $minValue

$name protected_oe property

protected $name

$shouldSend protected_oe property

protected $shouldSend