Class PlaceBlockEvent

java.lang.Object
org.bukkit.event.Event
ua.mcchickenstudio.opencreative.coding.blocks.events.WorldEvent
ua.mcchickenstudio.opencreative.coding.blocks.events.player.interaction.PlaceBlockEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable, BlockEvent

public final class PlaceBlockEvent extends WorldEvent implements org.bukkit.event.Cancellable, BlockEvent
  • Constructor Details

    • PlaceBlockEvent

      public PlaceBlockEvent(org.bukkit.entity.Player player, org.bukkit.event.block.BlockPlaceEvent event)
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getBlock

      @NotNull public @NotNull org.bukkit.block.Block getBlock()
      Description copied from interface: BlockEvent
      Returns block involved in block event.
      Specified by:
      getBlock in interface BlockEvent
      Returns:
      block from event.