Class SimulatedBlockBreakEvent

  • All Implemented Interfaces:
    Cancellable

    public class SimulatedBlockBreakEvent
    extends FakeBlockBreakEvent
    Event used internally by the plugin to detect if a hypothetical BlockBreak would be cancelled by another plugin. Used in determining whether drops should occur when heads might be broken by a player. This is useful when using plugins such as WorldGuard that cancel blockbreak in protected areas. This version of the class currently extends FakeBlockBreakEvent so that external plugin compatibility is not broken, but this is intended to be the new location of the class in the future. (Previously FakeBlockBreakEvent) Note: This documentation was inferred after the fact and may be inaccurate.
    Author:
    meiskam
    • Constructor Detail

      • SimulatedBlockBreakEvent

        public SimulatedBlockBreakEvent​(Block theBlock,
                                        Player player)
        Constructs a simulated block break event
        Parameters:
        theBlock - the block to "break"
        player - the player doing the breaking