Enum Class KitType

java.lang.Object
java.lang.Enum<KitType>
dev.twilite.game.facade.KitType
All Implemented Interfaces:
Serializable, Comparable<KitType>, Constable

public enum KitType extends Enum<KitType>
Actor appearance kit slots exposed by the client appearance data.

Some kit slots correspond to equipment slots, while body-only slots such as arms, hair, and jaw do not have an equipment container equivalent.

  • Enum Constant Details

    • CAPE

      public static final KitType CAPE
    • NECK

      public static final KitType NECK
    • MAINHAND

      public static final KitType MAINHAND
    • CHEST

      public static final KitType CHEST
    • OFFHAND

      public static final KitType OFFHAND
    • ARMS

      public static final KitType ARMS
    • LEGS

      public static final KitType LEGS
    • HAIR

      public static final KitType HAIR
    • HANDS

      public static final KitType HANDS
    • FEET

      public static final KitType FEET
    • JAW

      public static final KitType JAW
  • Method Details

    • values

      public static KitType[] 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 KitType 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
    • slot

      public Optional<EquipmentSlot> slot()
      Returns the matching equipment slot when this kit is backed by equipped gear.