Interface GenericServerListEvent
- All Known Implementing Classes:
PreServerListSetEvent
,PreServerListSetEvent
,PreServerListSetEvent
public interface GenericServerListEvent
Interface used for the platform-specific PreServerListSetEvent instances.
This allows the plugin to pull common info such as the
This allows the plugin to pull common info such as the
ProfileEntry
used or if the Event has been cancelled by
another plugin.-
Method Summary
Modifier and TypeMethodDescriptiongetEntry()
Gets theProfileEntry
currently set for this Event.boolean
Returns whether this Event has been cancelled or not.void
setCancelled
(boolean cancelled) Sets the Event's cancelled state.void
setEntry
(ProfileEntry entry) Sets theProfileEntry
to use for this Event.
-
Method Details
-
getEntry
ProfileEntry getEntry()Gets theProfileEntry
currently set for this Event.- Returns:
- The currently set
ProfileEntry
-
isCancelled
boolean isCancelled()Returns whether this Event has been cancelled or not.- Returns:
- Whether the event has been cancelled or not.
-
setEntry
- Parameters:
entry
- The newProfileEntry
to use. May not benull
,- Throws:
IllegalArgumentException
- Should the provided ProfileEntry benull
.
-
setCancelled
void setCancelled(boolean cancelled) Sets the Event's cancelled state.- Parameters:
cancelled
- Boolean to set the Event's cancelled State.
-