Enum Class PacketHandler.Priority

java.lang.Object
java.lang.Enum<PacketHandler.Priority>
dev.wyck.renderer.packet.PacketHandler.Priority
All Implemented Interfaces:
Serializable, Comparable<PacketHandler.Priority>, Constable
Enclosing interface:
PacketHandler

@AsOf("0.0.6") public static enum PacketHandler.Priority extends Enum<PacketHandler.Priority>
Enum constant for priority levels related to Wyck packet handling.
Since:
0.0.6
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static PacketHandler.Priority[] 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 PacketHandler.Priority 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
    • getLevel

      public int getLevel()
    • getDelegatePriority

      @Internal public <E extends Enum<E>> E getDelegatePriority(Class<E> enumClass)
      Maps this PacketHandler.Priority to another enum class with the same names.
      Type Parameters:
      E - The enum type
      Parameters:
      enumClass - The enum class to map to
      Returns:
      The mapped enum constant
      Throws:
      IllegalArgumentException - if the enum class does not have a constant with the same name