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(MultiPartEntityPart 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() |
protected final EntityDragon dragon
public PhaseBase(EntityDragon dragonIn)
public boolean getIsStationary()
getIsStationary in interface IPhasepublic void doClientRenderEffects()
doClientRenderEffects in interface IPhasepublic void doLocalUpdate()
doLocalUpdate in interface IPhasepublic void onCrystalDestroyed(EntityEnderCrystal crystal, BlockPos pos, DamageSource dmgSrc, EntityPlayer plyr)
onCrystalDestroyed in interface IPhasepublic void initPhase()
public void removeAreaEffect()
removeAreaEffect in interface IPhasepublic float getMaxRiseOrFall()
getMaxRiseOrFall in interface IPhasepublic Vec3d getTargetLocation()
getTargetLocation in interface IPhasepublic float getAdjustedDamage(MultiPartEntityPart pt, DamageSource src, float damage)
getAdjustedDamage in interface IPhasepublic float getYawFactor()
getYawFactor in interface IPhase