public class PlayerDamageEntityEvent extends PlayerEvent implements CancellableEvent
| Constructor and Description | 
|---|
PlayerDamageEntityEvent(Player player,
                       Entity damaged,
                       boolean sync)  | 
| Modifier and Type | Method and Description | 
|---|---|
Entity | 
getDamaged()  | 
boolean | 
isCancelled()  | 
boolean | 
isSync()
Of this is sync, the entity wasn't founded, and so it can have so tick of late. 
 | 
void | 
setCancelled(boolean cancel)  | 
getPlayerpublic Entity getDamaged()
public boolean isCancelled()
isCancelled in interface CancellableEventpublic void setCancelled(boolean cancel)
setCancelled in interface CancellableEventpublic boolean isSync()