Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
Attribute Class Reference

Public Member Functions

 getMinValue ()
 
 setMinValue ($minValue)
 
 getMaxValue ()
 
 setMaxValue ($maxValue)
 
 getDefaultValue ()
 
 setDefaultValue ($defaultValue)
 
 getValue ()
 
 setValue ($value, bool $fit=true, bool $shouldSend=false)
 
 getName ()
 
 getId ()
 
 isSyncable ()
 
 isDesynchronized ()
 
 markSynchronized (bool $synced=true)
 

Static Public Member Functions

static init ()
 
static addAttribute ($id, $name, $minValue, $maxValue, $defaultValue, $shouldSend=true)
 
static getAttribute ($id)
 
static getAttributeByName ($name)
 

Data Fields

const ABSORPTION = 0
 
const SATURATION = 1
 
const EXHAUSTION = 2
 
const KNOCKBACK_RESISTANCE = 3
 
const HEALTH = 4
 
const MOVEMENT_SPEED = 5
 
const FOLLOW_RANGE = 6
 
const HUNGER = 7
 
const FOOD = 7
 
const ATTACK_DAMAGE = 8
 
const EXPERIENCE_LEVEL = 9
 
const EXPERIENCE = 10
 

Protected Attributes

 $minValue
 
 $maxValue
 
 $defaultValue
 
 $currentValue
 
 $name
 
 $shouldSend
 
 $desynchronized = true
 

Static Protected Attributes

static $attributes = []
 

Member Function Documentation

static addAttribute (   $id,
  $name,
  $minValue,
  $maxValue,
  $defaultValue,
  $shouldSend = true 
)
static
Parameters
int$id
string$name
float$minValue
float$maxValue
float$defaultValue
bool$shouldSend
Returns
Attribute
static getAttribute (   $id)
static
Parameters
$id
Returns
null|Attribute
static getAttributeByName (   $name)
static
Parameters
$name
Returns
null|Attribute

The documentation for this class was generated from the following file: