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
  • Constructor Details

    • CustomPortalBreakEvent

      public CustomPortalBreakEvent(CompletePortal completePortal, CustomPortalDestroyCause cause, org.bukkit.entity.Entity destroyer)
      Constructor of the event
      Parameters:
      completePortal - the portal being broken
      cause - the cause of the portal breaking
      destroyer - the entity responsible
  • Method Details

    • getCompletePortal

      public CompletePortal getCompletePortal()
      Get the portal breaking
    • getCause

      public CustomPortalDestroyCause 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 class org.bukkit.event.Event
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean arg0)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable