Class EntityDieAtRegionEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
ml.karmaconfigs.api.bukkit.region.event.entity.EntityDieAtRegionEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class EntityDieAtRegionEvent
extends org.bukkit.event.entity.EntityEvent
implements org.bukkit.event.Cancellable
Entity die event
-
Nested Class Summary
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
ConstructorsConstructorDescriptionEntityDieAtRegionEvent(org.bukkit.entity.Entity ent, Forensics f, Cuboid rg)Initialize the entity die region event -
Method Summary
Modifier and TypeMethodDescriptionGet the event forensicsstatic org.bukkit.event.HandlerListGet a list of event handlers@NotNull org.bukkit.event.HandlerListGet event handler listGet the region the entity died inbooleanGets the cancellation state of this event.voidsetCancelled(boolean cancel)Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.entity.EntityEvent
getEntity, getEntityTypeMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
EntityDieAtRegionEvent
Initialize the entity die region event- Parameters:
ent- the entityf- the entity forensicsrg- the region the entity has left
-
-
Method Details
-
getForensics
Get the event forensics- Returns:
- the event forensics
-
getRegion
Get the region the entity died in- Returns:
- the event region
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Get event handler list- Specified by:
getHandlersin classorg.bukkit.event.Event- Returns:
- event handler list
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Get a list of event handlers- Returns:
- a list of event handlers
-
isCancelled
public boolean isCancelled()Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel)Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable- Parameters:
cancel- true if you wish to cancel this event
-