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 ProfileEntry used or if the Event has been cancelled by another plugin.
  • Method Details

    • getEntry

      ProfileEntry getEntry()
      Gets the ProfileEntry 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

      void setEntry(ProfileEntry entry)
      Sets the ProfileEntry to use for this Event.
      May not be null.
      Parameters:
      entry - The new ProfileEntry to use. May not be null,
      Throws:
      IllegalArgumentException - Should the provided ProfileEntry be null.
    • setCancelled

      void setCancelled(boolean cancelled)
      Sets the Event's cancelled state.
      Parameters:
      cancelled - Boolean to set the Event's cancelled State.