|
||||||||||
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.item.EntityItem
public class EntityItem
Field Summary | |
---|---|
int |
age
The age of this EntityItem (used to animate it up and down as well as expire it) |
int |
delayBeforeCanPickup
|
float |
hoverStart
The EntityItem's random initial float height. |
int |
lifespan
The maximum age of this EntityItem. |
Constructor Summary | |
---|---|
EntityItem(World par1World)
|
|
EntityItem(World par1World,
double par2,
double par4,
double par6)
|
|
EntityItem(World par1World,
double par2,
double par4,
double par6,
ItemStack par8ItemStack)
|
Method Summary | |
---|---|
boolean |
attackEntityFrom(DamageSource par1DamageSource,
int par2)
Called when the entity is attacked. |
boolean |
canAttackWithItem()
If returns false, the item will not inflict any damage against entities. |
boolean |
combineItems(EntityItem par1EntityItem)
Tries to merge this item with the item passed as the parameter. |
void |
func_70288_d()
|
void |
func_92013_a(ItemStack par1ItemStack)
|
ItemStack |
func_92014_d()
|
String |
getEntityName()
Gets the username of the entity. |
boolean |
handleWaterMovement()
Returns if this entity is in water and will end up adding the waters velocity to the entity |
void |
onCollideWithPlayer(EntityPlayer par1EntityPlayer)
Called by a player entity when they collide with an entity |
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 |
travelToDimension(int par1)
Teleports the entity to another dimension. |
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 |
Field Detail |
---|
public int age
public int delayBeforeCanPickup
public float hoverStart
public int lifespan
Constructor Detail |
---|
public EntityItem(World par1World, double par2, double par4, double par6)
public EntityItem(World par1World, double par2, double par4, double par6, ItemStack par8ItemStack)
public EntityItem(World par1World)
Method Detail |
---|
public void onUpdate()
onUpdate
in class Entity
public boolean combineItems(EntityItem par1EntityItem)
public void func_70288_d()
public boolean handleWaterMovement()
handleWaterMovement
in class Entity
public boolean attackEntityFrom(DamageSource par1DamageSource, int par2)
attackEntityFrom
in class Entity
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
public void onCollideWithPlayer(EntityPlayer par1EntityPlayer)
onCollideWithPlayer
in class Entity
public String getEntityName()
getEntityName
in class Entity
public boolean canAttackWithItem()
canAttackWithItem
in class Entity
public void travelToDimension(int par1)
travelToDimension
in class Entity
public ItemStack func_92014_d()
public void func_92013_a(ItemStack par1ItemStack)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |