public class LivingExperienceDropEvent extends LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EntityPlayer |
attackingPlayer |
private int |
droppedExperiencePoints |
private int |
originalExperiencePoints |
Constructor and Description |
---|
LivingExperienceDropEvent(EntityLivingBase entity,
EntityPlayer attackingPlayer,
int originalExperience) |
Modifier and Type | Method and Description |
---|---|
EntityPlayer |
getAttackingPlayer() |
int |
getDroppedExperience() |
int |
getOriginalExperience() |
void |
setDroppedExperience(int droppedExperience) |
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final EntityPlayer attackingPlayer
private final int originalExperiencePoints
private int droppedExperiencePoints
public LivingExperienceDropEvent(EntityLivingBase entity, EntityPlayer attackingPlayer, int originalExperience)
public int getDroppedExperience()
public void setDroppedExperience(int droppedExperience)
public EntityPlayer getAttackingPlayer()
public int getOriginalExperience()