|
||||||||||
| 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.EntityXPOrb
public class EntityXPOrb
| Field Summary | |
|---|---|
int |
field_70532_c
|
int |
xpColor
A constantly increasing value that RenderXPOrb uses to control the colour shifting (Green / yellow) |
int |
xpOrbAge
The age of the XP orb in ticks. |
| Constructor Summary | |
|---|---|
EntityXPOrb(World par1World)
|
|
EntityXPOrb(World par1World,
double par2,
double par4,
double par6,
int par8)
|
|
| 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. |
int |
getBrightnessForRender(float par1)
|
int |
getTextureByXP()
|
static int |
getXPSplit(int par0)
Get xp split rate (Is called until the xp drop code in EntityLiving.onEntityUpdate is complete) |
int |
getXpValue()
Returns the XP value of this XP orb. |
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 |
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 xpColor
public int xpOrbAge
public int field_70532_c
| Constructor Detail |
|---|
public EntityXPOrb(World par1World,
double par2,
double par4,
double par6,
int par8)
public EntityXPOrb(World par1World)
| Method Detail |
|---|
public int getBrightnessForRender(float par1)
getBrightnessForRender in class Entitypublic void onUpdate()
onUpdate in class Entitypublic boolean handleWaterMovement()
handleWaterMovement in class Entity
public boolean attackEntityFrom(DamageSource par1DamageSource,
int par2)
attackEntityFrom in class Entitypublic void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
public void onCollideWithPlayer(EntityPlayer par1EntityPlayer)
onCollideWithPlayer in class Entitypublic int getXpValue()
public int getTextureByXP()
public static int getXPSplit(int par0)
public boolean canAttackWithItem()
canAttackWithItem in class Entity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||