Class CancellableClientEvent
java.lang.Object
com.craftmend.openaudiomc.api.events.BaseEvent
com.craftmend.openaudiomc.api.events.ClientEvent
com.craftmend.openaudiomc.api.events.CancellableClientEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
ClientEnableVoiceEvent
,ClientPeerAddEvent
A cancellable client event
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if the event is cancelledvoid
setCancelled
(boolean cancelled) Set the event to cancelledMethods inherited from class com.craftmend.openaudiomc.api.events.ClientEvent
getClient
-
Constructor Details
-
CancellableClientEvent
Create a new client event- Parameters:
client
- the client that this event is about
-
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:Cancellable
Check if the event is cancelled- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- true if the event is cancelled
-
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:Cancellable
Set the event to cancelled- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancelled
- true if the event should be cancelled
-