Class PlayerBlockPlaceEvent

java.lang.Object
me.internalizable.numdrassl.api.event.player.PlayerBlockPlaceEvent
All Implemented Interfaces:
Cancellable

public class PlayerBlockPlaceEvent extends Object implements Cancellable
Event fired when a player attempts to place a block.
  • Constructor Details

    • PlayerBlockPlaceEvent

      public PlayerBlockPlaceEvent(@Nonnull Player player, int blockX, int blockY, int blockZ, int blockId)
  • Method Details

    • getPlayer

      @Nonnull public Player getPlayer()
    • getBlockX

      public int getBlockX()
    • getBlockY

      public int getBlockY()
    • getBlockZ

      public int getBlockZ()
    • getBlockId

      public int getBlockId()
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Cancellable
      Check if this event has been cancelled.
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      true if the event is cancelled
    • setCancelled

      public void setCancelled(boolean cancelled)
      Description copied from interface: Cancellable
      Set whether this event is cancelled.
      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancelled - true to cancel the event