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) |
getPlayer, hasPlayer
public Entity getDamaged()
public boolean isCancelled()
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancel)
setCancelled
in interface CancellableEvent
public boolean isSync()