Class CustomPortalUseEvent
java.lang.Object
org.bukkit.event.Event
me.xxastaspastaxx.dimensions.events.CustomPortalUseEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class CustomPortalUseEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
The event beign called when a portal is being used
- Author:
- astas
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionCustomPortalUseEvent(CompletePortal completePortal, org.bukkit.entity.Entity entity, CompletePortal destinationPortal)The constructor of the event -
Method Summary
Modifier and TypeMethodDescriptionGet the portal being usedGet the destination portalorg.bukkit.entity.EntityGet the entity using the portalstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListbooleanvoidsetCancelled(boolean arg0)voidsetDestinationPortal(CompletePortal destinationPortal)Override the destination portalMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
CustomPortalUseEvent
public CustomPortalUseEvent(CompletePortal completePortal, org.bukkit.entity.Entity entity, CompletePortal destinationPortal)The constructor of the event- Parameters:
completePortal- the portal being usedentity- the entity using the portaldestinationPortal- the destination of the portal
-
-
Method Details
-
getCompletePortal
Get the portal being used -
getEntity
public org.bukkit.entity.Entity getEntity()Get the entity using the portal -
setDestinationPortal
Override the destination portal- Parameters:
destinationPortal- the new portal to teleport to
-
getDestinationPortal
Get the destination portal -
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean arg0)- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-