public class PlayerDropsEvent extends LivingDropsEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EntityPlayer |
entityPlayer |
Constructor and Description |
---|
PlayerDropsEvent(EntityPlayer entity,
DamageSource source,
java.util.List<EntityItem> drops,
boolean recentlyHit)
Creates a new event containing all the items that will drop into the
world when a player dies.
|
Modifier and Type | Method and Description |
---|---|
EntityPlayer |
getEntityPlayer() |
getDrops, getLootingLevel, getSource, isRecentlyHit
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final EntityPlayer entityPlayer
public PlayerDropsEvent(EntityPlayer entity, DamageSource source, java.util.List<EntityItem> drops, boolean recentlyHit)
entity
- The dying player.source
- The source of the damage which is killing the player.drops
- List of all drops entering the world.public EntityPlayer getEntityPlayer()