Class CustomPortalIgniteEvent
java.lang.Object
org.bukkit.event.Event
me.xxastaspastaxx.dimensions.events.CustomPortalIgniteEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class CustomPortalIgniteEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Event called when a portal is being ignited
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionCustomPortalIgniteEvent(CompletePortal completePortal, CustomPortalIgniteCause cause, org.bukkit.entity.Entity entity, org.bukkit.inventory.ItemStack item)
Constructor of the event -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
The cause igniting the portalGet the portal being ignitedorg.bukkit.entity.Entity
The entity igniting the portalstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.inventory.ItemStack
The item used to ignite the portalboolean
void
replaceCompletePortal(CompletePortal newPortal)
Replace the portal being ignited with a new portal instancevoid
setCancelled(boolean arg0)
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
CustomPortalIgniteEvent
public CustomPortalIgniteEvent(CompletePortal completePortal, CustomPortalIgniteCause cause, org.bukkit.entity.Entity entity, org.bukkit.inventory.ItemStack item)Constructor of the event- Parameters:
completePortal
- portal being ignitedcause
- the cause igniting the portalentity
- the entity causing the igniteitem
- the item used to ignite
-
-
Method Details
-
getCompletePortal
Get the portal being ignited -
replaceCompletePortal
Replace the portal being ignited with a new portal instance- Parameters:
newPortal
- instance of the new portal
-
getCause
The cause igniting the portal -
getEntity
public org.bukkit.entity.Entity getEntity()The entity igniting the portal- Returns:
- null if no entity was involved
-
getLighter
public org.bukkit.inventory.ItemStack getLighter()The item used to ignite the portal- Returns:
- null if no item was 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
-