|
||||||||||
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.EntityFlying
net.minecraft.entity.monster.EntityGhast
public class EntityGhast
Field Summary | |
---|---|
int |
attackCounter
|
int |
courseChangeCooldown
|
int |
prevAttackCounter
|
double |
waypointX
|
double |
waypointY
|
double |
waypointZ
|
Fields inherited from interface net.minecraft.entity.monster.IMob |
---|
mobSelector |
Constructor Summary | |
---|---|
EntityGhast(World par1World)
|
Method Summary | |
---|---|
boolean |
attackEntityFrom(DamageSource par1DamageSource,
int par2)
Called when the entity is attacked. |
boolean |
getCanSpawnHere()
Checks if the entity's current position is a valid location to spawn this entity. |
int |
getMaxHealth()
|
int |
getMaxSpawnedInChunk()
Will return how many at most can spawn in a chunk at once. |
void |
onUpdate()
Called to update the entity's position/logic. |
void |
readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to read subclass entity data from NBT. |
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT. |
Methods inherited from class net.minecraft.entity.EntityFlying |
---|
isOnLadder, moveEntityWithHeading |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int courseChangeCooldown
public double waypointX
public double waypointY
public double waypointZ
public int prevAttackCounter
public int attackCounter
Constructor Detail |
---|
public EntityGhast(World par1World)
Method Detail |
---|
public boolean attackEntityFrom(DamageSource par1DamageSource, int par2)
attackEntityFrom
in class EntityLiving
public int getMaxHealth()
getMaxHealth
in class EntityLiving
public void onUpdate()
onUpdate
in class EntityLiving
public boolean getCanSpawnHere()
getCanSpawnHere
in class EntityLiving
public int getMaxSpawnedInChunk()
getMaxSpawnedInChunk
in class EntityLiving
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT
in class EntityLiving
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT
in class EntityLiving
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |