public static class PlayerEvent.Clone extends PlayerEvent
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.ItemCraftedEvent, PlayerEvent.ItemPickupEvent, PlayerEvent.ItemSmeltedEvent, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.PlayerChangedDimensionEvent, PlayerEvent.PlayerLoggedInEvent, PlayerEvent.PlayerLoggedOutEvent, PlayerEvent.PlayerRespawnEvent, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private PlayerEntity |
original |
private boolean |
wasDeath |
Constructor and Description |
---|
Clone(PlayerEntity _new,
PlayerEntity oldPlayer,
boolean wasDeath) |
Modifier and Type | Method and Description |
---|---|
PlayerEntity |
getOriginal()
The old EntityPlayer that this new entity is a clone of.
|
boolean |
isWasDeath()
True if this event was fired because the player died.
|
getPlayer
getEntityLiving
getEntity
private final PlayerEntity original
private final boolean wasDeath
public Clone(PlayerEntity _new, PlayerEntity oldPlayer, boolean wasDeath)
public PlayerEntity getOriginal()
public boolean isWasDeath()