Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
Effect Class Reference
Inheritance diagram for Effect:
[legend]

Public Member Functions

 __construct ($id, $name, $r, $g, $b, $isBad=false)
 
 getName ()
 
 getId ()
 
 setDuration ($ticks)
 
 getDuration ()
 
 isVisible ()
 
 setVisible ($bool)
 
 getAmplifier ()
 
 setAmplifier (int $amplifier)
 
 isAmbient ()
 
 setAmbient ($ambient=true)
 
 isBad ()
 
 canTick ()
 
 applyEffect (Entity $entity)
 
 getColor ()
 
 setColor ($r, $g, $b)
 
 add (Entity $entity, $modify=false, Effect $oldEffect=null)
 
 remove (Entity $entity)
 

Static Public Member Functions

static init ()
 
static getEffect ($id)
 
static getEffectByName ($name)
 

Data Fields

const SPEED = 1
 
const SLOWNESS = 2
 
const HASTE = 3
 
const SWIFTNESS = 3
 
const FATIGUE = 4
 
const MINING_FATIGUE = 4
 
const STRENGTH = 5
 
const HEALING = 6
 
const HARMING = 7
 
const JUMP = 8
 
const NAUSEA = 9
 
const CONFUSION = 9
 
const REGENERATION = 10
 
const DAMAGE_RESISTANCE = 11
 
const FIRE_RESISTANCE = 12
 
const WATER_BREATHING = 13
 
const INVISIBILITY = 14
 
const BLINDNESS = 15
 
const NIGHT_VISION = 16
 
const HUNGER = 17
 
const WEAKNESS = 18
 
const POISON = 19
 
const WITHER = 20
 
const HEALTH_BOOST = 21
 
const ABSORPTION = 22
 
const SATURATION = 23
 
const MAX_DURATION = 2147483648
 

Protected Attributes

 $id
 
 $name
 
 $duration
 
 $amplifier = 0
 
 $color
 
 $show = true
 
 $ambient = false
 
 $bad
 

Static Protected Attributes

static $effects
 

Member Function Documentation

getAmplifier ( )
Returns
int
static getEffect (   $id)
static
Parameters
int$id
Returns
$this
setAmplifier ( int  $amplifier)
Parameters
int$amplifier
Returns
$this

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