Class PortalEntryEvent

java.lang.Object
com.welcome234.pluginsystem.events.PortalEntryEvent

public class PortalEntryEvent extends Object
Called when a player enters a portal
  • Constructor Details

    • PortalEntryEvent

      public PortalEntryEvent(String player, int x, int y, boolean endDimension)
  • Method Details

    • getPlayer

      public Player 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