Class DynamiteExplodeEvent

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

public class DynamiteExplodeEvent extends Object
Called when a player explodes a Dynamite block
  • Constructor Summary

    Constructors
    Constructor
    Description
    DynamiteExplodeEvent​(String playername, int x, int y, boolean endDimension)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets the dimension of the Dynamite explosion
    Gets the player who exploded the Dynamite
    int
    Gets the X coordinate of the Dynamite explosion
    int
    Gets the Y coordinate of the Dynamite explosion
    boolean
    Gets whether this event is cancelled
    void
    setCancelled​(boolean cancelled)
    Sets the cancellation status of this event

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DynamiteExplodeEvent

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

    • getPlayer

      public Player getPlayer()
      Gets the player who exploded the Dynamite
      Returns:
      Player instance
    • getX

      public int getX()
      Gets the X coordinate of the Dynamite explosion
      Returns:
      X-coordinate
    • getY

      public int getY()
      Gets the Y coordinate of the Dynamite explosion
      Returns:
      Y-coordinate
    • getDimension

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