Enum NewcharStat

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<NewcharStat>

    public enum NewcharStat
    extends java.lang.Enum<NewcharStat>
    A stat value.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CHA
      Charisma.
      CON
      Constitution.
      DEX
      Dexterity.
      INT
      Intelligence.
      POW
      Power.
      STR
      Strength.
      WIS
      Wisdom.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String getName()
      Returns the display name.
      int getPriority()
      Returns the display priority of the related error message.
      int getStat()
      Returns the stat.
      @NotNull java.lang.String getStatName()
      Returns the statname in the ceateplayer command.
      static NewcharStat valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static NewcharStat[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static NewcharStat[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NewcharStat c : NewcharStat.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NewcharStat valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getStat

        public int getStat()
        Returns the stat.
        Returns:
        the stat
      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Returns the display name.
        Returns:
        the display name
      • getStatName

        @NotNull
        public @NotNull java.lang.String getStatName()
        Returns the statname in the ceateplayer command.
        Returns:
        the statname
      • getPriority

        public int getPriority()
        Returns the display priority of the related error message.
        Returns:
        the display priority