|
||||||||||
| 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.passive.EntityAmbientCreature
net.minecraft.entity.passive.EntityBat
public class EntityBat
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
EntityBat(World par1World)
|
|
| Method Summary | |
|---|---|
boolean |
attackEntityFrom(DamageSource par1DamageSource,
int par2)
Called when the entity is attacked. |
boolean |
canBePushed()
Returns true if this entity should push and be pushed by other entities when colliding. |
boolean |
doesEntityNotTriggerPressurePlate()
Return whether this entity should NOT trigger a pressure plate or a tripwire. |
boolean |
getCanSpawnHere()
Checks if the entity's current position is a valid location to spawn this entity. |
boolean |
getIsBatHanging()
|
int |
getMaxHealth()
|
void |
initCreature()
Initialize this creature. |
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 |
setIsBatHanging(boolean par1)
|
void |
writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
(abstract) Protected helper method to write subclass entity data to NBT. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EntityBat(World par1World)
| Method Detail |
|---|
public boolean canBePushed()
canBePushed in class EntityLivingpublic int getMaxHealth()
getMaxHealth in class EntityLivingpublic boolean getIsBatHanging()
public void setIsBatHanging(boolean par1)
public void onUpdate()
onUpdate in class EntityLivingpublic boolean doesEntityNotTriggerPressurePlate()
doesEntityNotTriggerPressurePlate in class Entity
public boolean attackEntityFrom(DamageSource par1DamageSource,
int par2)
attackEntityFrom in class EntityLivingpublic void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
readEntityFromNBT in class EntityLivingpublic void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
writeEntityToNBT in class EntityLivingpublic boolean getCanSpawnHere()
getCanSpawnHere in class EntityLivingpublic void initCreature()
initCreature in class EntityLiving
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||