Enum NewcharStat
- java.lang.Object
-
- java.lang.Enum<NewcharStat>
-
- com.realtime.crossfire.jxclient.gui.label.NewcharStat
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NewcharStat>
public enum NewcharStat extends java.lang.Enum<NewcharStat>
A stat value.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.StringgetName()Returns the display name.intgetPriority()Returns the display priority of the related error message.intgetStat()Returns the stat.@NotNull java.lang.StringgetStatName()Returns the statname in the ceateplayer command.static NewcharStatvalueOf(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.
-
-
-
Enum Constant Detail
-
STR
public static final NewcharStat STR
Strength.
-
DEX
public static final NewcharStat DEX
Dexterity.
-
CON
public static final NewcharStat CON
Constitution.
-
INT
public static final NewcharStat INT
Intelligence.
-
WIS
public static final NewcharStat WIS
Wisdom.
-
POW
public static final NewcharStat POW
Power.
-
CHA
public static final NewcharStat CHA
Charisma.
-
-
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 namejava.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
-
-