Class PortalEntryEvent
java.lang.Object
com.welcome234.pluginsystem.events.PortalEntryEvent
Called when a player enters a portal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the dimension of this portalGets the player who has entered this portalintgetX()Gets the X coordinate of this portalintgetY()Gets the Y coordinate of this portalbooleanGets whether this event is cancelledvoidsetCancelled(boolean cancelled)Sets the cancellation status of this event
-
Constructor Details
-
PortalEntryEvent
-
-
Method Details
-
getPlayer
Gets the player who has entered this portal- Returns:
- Player instance
-
getX
public int getX()Gets the X coordinate of this portal- Returns:
- X-coordinate
-
getY
public int getY()Gets the Y coordinate of this portal- Returns:
- Y-coordinate
-
getDimension
public boolean getDimension()Gets the dimension of this portal- Returns:
- Dimension (false = Overworld, true = End)
-
isCancelled
public boolean isCancelled()Gets whether this event is cancelled- Returns:
- Whether cancelled
-
setCancelled
public void setCancelled(boolean cancelled)Sets the cancellation status of this event- Parameters:
cancelled- Whether cancelled
-