Enum Class ServerAudience

java.lang.Object
java.lang.Enum<ServerAudience>
com.xpdustry.distributor.common.audience.ServerAudience
All Implemented Interfaces:
com.xpdustry.distributor.api.audience.Audience, Serializable, Comparable<ServerAudience>, Constable

public enum ServerAudience extends Enum<ServerAudience> implements com.xpdustry.distributor.api.audience.Audience
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.xpdustry.distributor.api.key.KeyContainer
     
    com.xpdustry.distributor.api.permission.PermissionContainer
     
    void
    sendMessage(com.xpdustry.distributor.api.component.Component component)
     
    void
    sendMessage(com.xpdustry.distributor.api.component.Component component, com.xpdustry.distributor.api.component.Component unformatted, com.xpdustry.distributor.api.audience.Audience sender)
     
    void
    sendWarning(com.xpdustry.distributor.api.component.Component component)
     
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.xpdustry.distributor.api.audience.Audience

    getAudiences, hideHUDText, kick, kick, kick, kick, openURI, sendAnnouncement, sendNotification, showHUDText, showLabel, toStream
  • Enum Constant Details

  • Method Details

    • values

      public static ServerAudience[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ServerAudience valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • sendMessage

      public void sendMessage(com.xpdustry.distributor.api.component.Component component)
      Specified by:
      sendMessage in interface com.xpdustry.distributor.api.audience.Audience
    • sendMessage

      public void sendMessage(com.xpdustry.distributor.api.component.Component component, com.xpdustry.distributor.api.component.Component unformatted, com.xpdustry.distributor.api.audience.Audience sender)
      Specified by:
      sendMessage in interface com.xpdustry.distributor.api.audience.Audience
    • sendWarning

      public void sendWarning(com.xpdustry.distributor.api.component.Component component)
      Specified by:
      sendWarning in interface com.xpdustry.distributor.api.audience.Audience
    • getMetadata

      public com.xpdustry.distributor.api.key.KeyContainer getMetadata()
      Specified by:
      getMetadata in interface com.xpdustry.distributor.api.audience.Audience
    • getPermissions

      public com.xpdustry.distributor.api.permission.PermissionContainer getPermissions()
      Specified by:
      getPermissions in interface com.xpdustry.distributor.api.audience.Audience