Class CustomPortalBreakEvent
java.lang.Object
org.bukkit.event.Event
me.xxastaspastaxx.dimensions.events.CustomPortalBreakEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class CustomPortalBreakEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event called when a custom portal breaks
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionCustomPortalBreakEvent(CompletePortal completePortal, CustomPortalDestroyCause cause, org.bukkit.entity.Entity destroyer)
Constructor of the event -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Get the cause of breakingGet the portal breakingorg.bukkit.entity.Entity
Get the entity responsiblestatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
boolean
void
setCancelled(boolean arg0)
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
CustomPortalBreakEvent
public CustomPortalBreakEvent(CompletePortal completePortal, CustomPortalDestroyCause cause, org.bukkit.entity.Entity destroyer)Constructor of the event- Parameters:
completePortal
- the portal being brokencause
- the cause of the portal breakingdestroyer
- the entity responsible
-
-
Method Details
-
getCompletePortal
Get the portal breaking -
getCause
Get the cause of breaking -
getDestroyer
public org.bukkit.entity.Entity getDestroyer()Get the entity responsible- Returns:
- null if there was no entity involved
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean arg0)- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-