public abstract class PhaseBase extends java.lang.Object implements IPhase
Modifier and Type | Field and Description |
---|---|
protected EntityDragon |
dragon |
Constructor and Description |
---|
PhaseBase(EntityDragon dragonIn) |
Modifier and Type | Method and Description |
---|---|
void |
doClientRenderEffects()
Generates particle effects appropriate to the phase (or sometimes sounds).
|
void |
doLocalUpdate()
Gives the phase a chance to update its status.
|
float |
getAdjustedDamage(EntityDragonPart pt,
DamageSource src,
float damage)
Normally, just returns damage.
|
boolean |
getIsStationary() |
float |
getMaxRiseOrFall()
Returns the maximum amount dragon may rise or fall during this phase
|
Vec3d |
getTargetLocation()
Returns the location the dragon is flying toward
|
float |
getYawFactor() |
void |
initPhase()
Called when this phase is set to active
|
void |
onCrystalDestroyed(EntityEnderCrystal crystal,
BlockPos pos,
DamageSource dmgSrc,
EntityPlayer plyr) |
void |
removeAreaEffect() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPhaseList
protected final EntityDragon dragon
public PhaseBase(EntityDragon dragonIn)
public boolean getIsStationary()
getIsStationary
in interface IPhase
public void doClientRenderEffects()
doClientRenderEffects
in interface IPhase
public void doLocalUpdate()
doLocalUpdate
in interface IPhase
public void onCrystalDestroyed(EntityEnderCrystal crystal, BlockPos pos, DamageSource dmgSrc, EntityPlayer plyr)
onCrystalDestroyed
in interface IPhase
public void initPhase()
public void removeAreaEffect()
removeAreaEffect
in interface IPhase
public float getMaxRiseOrFall()
getMaxRiseOrFall
in interface IPhase
public Vec3d getTargetLocation()
getTargetLocation
in interface IPhase
public float getAdjustedDamage(EntityDragonPart pt, DamageSource src, float damage)
getAdjustedDamage
in interface IPhase
public float getYawFactor()
getYawFactor
in interface IPhase