public abstract class DelegateEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable, Handleable
| Modifier | Constructor and Description |
|---|---|
protected |
DelegateEvent(org.bukkit.event.Event originalEvent,
Cause cause)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
Cause |
getCause()
Return the cause.
|
org.bukkit.event.Event |
getOriginalEvent()
Get the original event.
|
List<StateFlag> |
getRelevantFlags()
Get a list of relevant flags to consider for this event.
|
org.bukkit.event.Event.Result |
getResult() |
boolean |
isCancelled() |
boolean |
isSilent()
Get whether this should be a silent check.
|
DelegateEvent |
setAllowed(boolean allowed)
Set the event to
Result#ALLOW if allowed is true. |
void |
setCancelled(boolean cancel) |
void |
setResult(org.bukkit.event.Event.Result result) |
DelegateEvent |
setSilent(boolean silent)
Set whether this should be a silent check.
|
@Nullable public org.bukkit.event.Event getOriginalEvent()
null if unavailablepublic Cause getCause()
public List<StateFlag> getRelevantFlags()
public boolean isCancelled()
isCancelled in interface org.bukkit.event.Cancellablepublic void setCancelled(boolean cancel)
setCancelled in interface org.bukkit.event.Cancellablepublic org.bukkit.event.Event.Result getResult()
getResult in interface Handleablepublic void setResult(org.bukkit.event.Event.Result result)
setResult in interface Handleablepublic boolean isSilent()
public DelegateEvent setSilent(boolean silent)
silent - true if silentpublic DelegateEvent setAllowed(boolean allowed)
Result#ALLOW if allowed is true.allowed - true to set the resultCopyright © 2015. All Rights Reserved.