GenericServerListEvent¶
Interface used for the platform-specific PreServerListSetEvent instances.
This allows the plugin to pull common info such as ProfileEntry or if the event has been cancelled by another plugin.
Method Summary¶
Modifier and Type | Method | Description |
---|---|---|
ProfileEntry |
getEntry() |
Gets the ProfileEntry currently set. |
void |
setEntry(ProfileEntry) |
Sets the new ProfileEntry to use. |
boolean |
isCancelled() |
Returns whether this event has been cancelled or not. |
void |
setCancelled(boolean) |
Sets the event's cancel state |
Method Details¶
ProfileEntry getEntry()
¶
Gets the ProfileEntry
currently set.
Returns:¶
The currently used ProfileEntry.
void setEntry(ProfileEntry)
¶
Sets the new ProfileEntry
to use.
This may not be null
.
Parameters:¶
ProfileEntry: entry
- The newProfileEntry
to use.
Throws:¶
IllegalArgumentException
- When the provided ProfileEntry isnull