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
ConstructorDescriptionSimulatedBlockBreakEvent
(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
-
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 breakplayer
- the player doing the breaking
-