Class CorruptionActivateEvent

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

public class CorruptionActivateEvent extends Object
Called when a player activates a corruption core
  • Constructor Details

    • CorruptionActivateEvent

      public CorruptionActivateEvent(String playername, int x, int y, boolean endDimension)
  • Method Details

    • getPlayer

      public Player getPlayer()
      Gets the player who activated the core
      Returns:
      Player instance
    • getX

      public int getX()
      Gets the X coordinate of the activated core
      Returns:
      X-coordinate
    • getY

      public int getY()
      Gets the Y coordinate of the activated core
      Returns:
      Y-coordinate
    • getDimension

      public boolean getDimension()
      Gets the dimension of the activated core
      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