mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-23 23:03:59 +00:00
blockstate, more block events, command preprocess event.
This commit is contained in:
parent
21b5accc69
commit
18a673bd46
34 changed files with 1359 additions and 58 deletions
|
|
@ -39,17 +39,10 @@ public class BlockBreakEvent : BlockExpEvent, Cancellable
|
|||
/// <returns>The Player that is breaking the block involved in this event.</returns>
|
||||
public Player getPlayer() => _player;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the cancellation state of this event.
|
||||
/// </summary>
|
||||
/// <returns><c>true</c> if this event is cancelled.</returns>
|
||||
/// <inheritdoc/>
|
||||
public bool isCancelled() => _cancel;
|
||||
|
||||
/// <summary>
|
||||
/// Sets the cancellation state of this event. A cancelled event will not be
|
||||
/// executed in the server, but will still pass to other plugins.
|
||||
/// </summary>
|
||||
/// <param name="cancel"><c>true</c> if you wish to cancel this event.</param>
|
||||
/// <inheritdoc/>
|
||||
public void setCancelled(bool cancel)
|
||||
{
|
||||
_cancel = cancel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue