|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.entity.Entity
net.minecraft.entity.EntityLiving
net.minecraft.entity.boss.EntityDragon
public class EntityDragon
Field Summary | |
---|---|
float |
animTime
Animation time, used to control the speed of the animation cycles (wings flapping, jaw opening, etc.) |
int |
deathTicks
|
EntityDragonPart[] |
dragonPartArray
An array containing all body parts of this dragon |
EntityDragonPart |
dragonPartBody
The body bounding box of a dragon |
EntityDragonPart |
dragonPartHead
The head bounding box of a dragon |
EntityDragonPart |
dragonPartTail1
|
EntityDragonPart |
dragonPartTail2
|
EntityDragonPart |
dragonPartTail3
|
EntityDragonPart |
dragonPartWing1
|
EntityDragonPart |
dragonPartWing2
|
boolean |
forceNewTarget
Force selecting a new flight target at next tick if set to true. |
EntityEnderCrystal |
healingEnderCrystal
The current endercrystal that is healing this dragon |
float |
prevAnimTime
Animation time at previous tick. |
double[][] |
ringBuffer
Ring buffer array for the last 64 Y-positions and yaw rotations. |
int |
ringBufferIndex
Index into the ring buffer. |
boolean |
slowed
Activated if the dragon is flying though obsidian, white stone or bedrock. |
double |
targetX
|
double |
targetY
|
double |
targetZ
|
Constructor Summary | |
---|---|
EntityDragon(World par1World)
|
Method Summary | |
---|---|
boolean |
attackEntityFrom(DamageSource par1DamageSource,
int par2)
Called when the entity is attacked. |
boolean |
attackEntityFromPart(EntityDragonPart par1EntityDragonPart,
DamageSource par2DamageSource,
int par3)
|
boolean |
canBeCollidedWith()
Returns true if other Entities should be prevented from moving through this Entity. |
World |
func_82194_d()
|
int |
getDragonHealth()
Returns the health points of the dragon. |
int |
getMaxHealth()
|
double[] |
getMovementOffsets(int par1,
float par2)
Returns a double[3] array with movement offsets, used to calculate trailing tail/neck positions. |
Entity[] |
getParts()
Return the Entity parts making up this Entity (currently only for dragons) |
void |
onLivingUpdate()
Called frequently so the entity can update its state every tick as required. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.minecraft.entity.boss.IBossDisplayData |
---|
getEntityName |
Field Detail |
---|
public double targetX
public double targetY
public double targetZ
public double[][] ringBuffer
public int ringBufferIndex
public EntityDragonPart[] dragonPartArray
public EntityDragonPart dragonPartHead
public EntityDragonPart dragonPartBody
public EntityDragonPart dragonPartTail1
public EntityDragonPart dragonPartTail2
public EntityDragonPart dragonPartTail3
public EntityDragonPart dragonPartWing1
public EntityDragonPart dragonPartWing2
public float prevAnimTime
public float animTime
public boolean forceNewTarget
public boolean slowed
public int deathTicks
public EntityEnderCrystal healingEnderCrystal
Constructor Detail |
---|
public EntityDragon(World par1World)
Method Detail |
---|
public int getMaxHealth()
getMaxHealth
in interface IBossDisplayData
getMaxHealth
in class EntityLiving
public double[] getMovementOffsets(int par1, float par2)
public void onLivingUpdate()
onLivingUpdate
in class EntityLiving
public boolean attackEntityFromPart(EntityDragonPart par1EntityDragonPart, DamageSource par2DamageSource, int par3)
attackEntityFromPart
in interface IEntityMultiPart
public boolean attackEntityFrom(DamageSource par1DamageSource, int par2)
attackEntityFrom
in class EntityLiving
public Entity[] getParts()
getParts
in class Entity
public boolean canBeCollidedWith()
canBeCollidedWith
in class EntityLiving
public int getDragonHealth()
IBossDisplayData
getDragonHealth
in interface IBossDisplayData
public World func_82194_d()
func_82194_d
in interface IEntityMultiPart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |