Interface GenericServerListEvent
- All Known Implementing Classes:
- PreServerListSetEvent,- PreServerListSetEvent,- PreServerListSetEvent
@NullMarked
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 SummaryModifier and TypeMethodDescriptiongetEntry()Gets theProfileEntrycurrently set for this Event.booleanReturns whether this Event has been cancelled or not.voidsetCancelled(boolean cancelled) Sets the Event's cancelled state.voidsetEntry(ProfileEntry entry) Sets theProfileEntryto use for this Event.
- 
Method Details- 
getEntryProfileEntry getEntry()Gets theProfileEntrycurrently set for this Event.- Returns:
- The currently set ProfileEntry
 
- 
isCancelledboolean isCancelled()Returns whether this Event has been cancelled or not.- Returns:
- Whether the event has been cancelled or not.
 
- 
setEntry- Parameters:
- entry- The new- ProfileEntryto use. May not be- null,
- Throws:
- IllegalArgumentException- Should the provided ProfileEntry be- null.
 
- 
setCancelledvoid setCancelled(boolean cancelled) Sets the Event's cancelled state.- Parameters:
- cancelled- Boolean to set the Event's cancelled State.
 
 
-