public class LivingExperienceDropEvent extends LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
attackingPlayer |
private int |
droppedExperiencePoints |
private int |
originalExperiencePoints |
Constructor and Description |
---|
LivingExperienceDropEvent(LivingEntity entity,
PlayerEntity attackingPlayer,
int originalExperience) |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
getAttackingPlayer() |
int |
getDroppedExperience() |
int |
getOriginalExperience() |
void |
setDroppedExperience(int droppedExperience) |
getEntityLiving
getEntity
private final PlayerEntity attackingPlayer
private final int originalExperiencePoints
private int droppedExperiencePoints
public LivingExperienceDropEvent(LivingEntity entity, PlayerEntity attackingPlayer, int originalExperience)
public int getDroppedExperience()
public void setDroppedExperience(int droppedExperience)
public PlayerEntity getAttackingPlayer()
public int getOriginalExperience()