Enum Class AllowedSender

java.lang.Object
java.lang.Enum<AllowedSender>
dev.ua.theroer.magicutils.commands.AllowedSender
All Implemented Interfaces:
Serializable, Comparable<AllowedSender>, Constable

public enum AllowedSender extends Enum<AllowedSender>
Allowed sender kinds for @Sender annotation.
  • Enum Constant Details

    • ANY

      public static final AllowedSender ANY
      Any sender.
    • PLAYER

      public static final AllowedSender PLAYER
      Player sender.
    • CONSOLE

      public static final AllowedSender CONSOLE
      Console sender.
    • BLOCK

      public static final AllowedSender BLOCK
      Command block sender.
    • MINECART

      public static final AllowedSender MINECART
      Command minecart sender.
    • PROXIED

      public static final AllowedSender PROXIED
      Proxied sender (Bungee/Velocity).
    • REMOTE

      public static final AllowedSender REMOTE
      Remote console sender.
  • Method Details

    • values

      public static AllowedSender[] 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 AllowedSender 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