Class SimulatedBlockBreakEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.block.BlockExpEvent
org.bukkit.event.block.BlockBreakEvent
com.github.crashdemons.miningtrophies.events.SimulatedBlockBreakEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class SimulatedBlockBreakEvent extends org.bukkit.event.block.BlockBreakEvent
An event used by the plugin to detect if a hypothetical BlockBreak would be cancelled, potentially from protection plugins. Generally, this should not be used unless entirely necessary.
Author:
crash
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Field Summary

    Fields inherited from class org.bukkit.event.block.BlockEvent

    block
  • Constructor Summary

    Constructors
    Constructor
    Description
    SimulatedBlockBreakEvent(org.bukkit.block.Block block, org.bukkit.entity.Player player)
    Constructs a simulated blockbreak event
  • Method Summary

    Methods inherited from class org.bukkit.event.block.BlockBreakEvent

    getPlayer, isCancelled, isDropItems, setCancelled, setDropItems

    Methods inherited from class org.bukkit.event.block.BlockExpEvent

    getExpToDrop, getHandlerList, getHandlers, setExpToDrop

    Methods inherited from class org.bukkit.event.block.BlockEvent

    getBlock

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • SimulatedBlockBreakEvent

      public SimulatedBlockBreakEvent(org.bukkit.block.Block block, org.bukkit.entity.Player player)
      Constructs a simulated blockbreak event
      Parameters:
      block - the block to hypothetically break
      player - the player doing the breaking