Class EntityBreakByEntityEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
io.papermc.paper.event.entity.EntityBreakEvent
io.papermc.paper.event.entity.EntityBreakByEntityEvent
- All Implemented Interfaces:
Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class EntityBreakEvent
EntityBreakEvent.RemoveCauseNested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class EntityEvent
entity -
Constructor Summary
ConstructorsConstructorDescriptionEntityBreakByEntityEvent(Entity entity, Entity remover, DamageSource damageSource) EntityBreakByEntityEvent(Entity entity, Entity remover, DamageSource damageSource, EntityBreakEvent.RemoveCause cause) -
Method Summary
Modifier and TypeMethodDescriptionGets theDamageSourcethat caused the entity to be removed.Gets the entity that removed the entity.Methods inherited from class EntityBreakEvent
getCause, getHandlerList, getHandlers, isCancelled, setCancelledMethods inherited from class EntityEvent
getEntity, getEntityTypeMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
EntityBreakByEntityEvent
-
EntityBreakByEntityEvent
public EntityBreakByEntityEvent(Entity entity, Entity remover, DamageSource damageSource, EntityBreakEvent.RemoveCause cause)
-
-
Method Details
-
getRemover
Gets the entity that removed the entity.- Returns:
- the entity that removed the entity
-
getDamageSource
Gets theDamageSourcethat caused the entity to be removed.- Returns:
- the damage source
-