Class LoggingEntityDamageByEntityEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
org.bukkit.event.entity.EntityDamageEvent
org.bukkit.event.entity.EntityDamageByEntityEvent
com.sk89q.worldguard.bukkit.event.debug.LoggingEntityDamageByEntityEvent
- All Implemented Interfaces:
CancelLogging
,org.bukkit.event.Cancellable
public class LoggingEntityDamageByEntityEvent
extends org.bukkit.event.entity.EntityDamageByEntityEvent
implements CancelLogging
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.entity.EntityDamageEvent
org.bukkit.event.entity.EntityDamageEvent.DamageCause, org.bukkit.event.entity.EntityDamageEvent.DamageModifier
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.entity.EntityEvent
entity
-
Constructor Summary
ConstructorDescriptionLoggingEntityDamageByEntityEvent
(org.bukkit.entity.Entity damager, org.bukkit.entity.Entity damagee, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, double damage) -
Method Summary
Modifier and TypeMethodDescriptionGet an immutable list of cancels.void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.entity.EntityDamageByEntityEvent
getDamager, getDamageSource, isCritical
Methods inherited from class org.bukkit.event.entity.EntityDamageEvent
getCause, getDamage, getDamage, getFinalDamage, getHandlerList, getHandlers, getOriginalDamage, isApplicable, isCancelled, setDamage, setDamage
Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityType
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.event.Cancellable
isCancelled
-
Constructor Details
-
LoggingEntityDamageByEntityEvent
public LoggingEntityDamageByEntityEvent(org.bukkit.entity.Entity damager, org.bukkit.entity.Entity damagee, org.bukkit.event.entity.EntityDamageEvent.DamageCause cause, double damage)
-
-
Method Details
-
getCancels
Description copied from interface:CancelLogging
Get an immutable list of cancels.- Specified by:
getCancels
in interfaceCancelLogging
- Returns:
- An immutable list
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
- Overrides:
setCancelled
in classorg.bukkit.event.entity.EntityDamageEvent
-