Class DelegateEvents
java.lang.Object
com.sk89q.worldguard.bukkit.event.DelegateEvents
Utility methods for dealing with delegate events.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Handleable>
TsetAllowed
(T event, boolean allowed) Set an event as handled asEvent.Result.ALLOW
ifallowed
is true, otherwise do nothing.static <T extends DelegateEvent>
TsetSilent
(T event) Set an event to be silent.static <T extends DelegateEvent>
TsetSilent
(T event, boolean silent) Set an event to be silent.
-
Method Details
-
setSilent
Set an event to be silent.- Type Parameters:
T
- the type of event- Parameters:
event
- the event- Returns:
- the same event
-
setSilent
Set an event to be silent.- Type Parameters:
T
- the type of event- Parameters:
event
- the eventsilent
- true to set silent- Returns:
- the same event
-
setAllowed
Set an event as handled asEvent.Result.ALLOW
ifallowed
is true, otherwise do nothing.- Type Parameters:
T
- the type of event- Parameters:
event
- the event- Returns:
- the same event
-