Enum EntityColors
- java.lang.Object
-
- java.lang.Enum<EntityColors>
-
- net.eternalclient.api.utilities.paint.EntityColors
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EntityColors>
public enum EntityColors extends java.lang.Enum<EntityColors>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
EntityColors.State
-
Enum Constant Summary
Enum Constants Enum Constant Description GAME_OBJECT
GROUND_ITEM
NPC
PLAYER
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.Color
colorWithAlpha(java.awt.Color color, int alpha)
protected int
constrainValue(int value)
java.awt.Color
getBorderColor()
java.awt.Color
getFillerColor()
static EntityColors
getFromObject(java.lang.Object object)
static EntityColors
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EntityColors[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLAYER
public static final EntityColors PLAYER
-
NPC
public static final EntityColors NPC
-
GROUND_ITEM
public static final EntityColors GROUND_ITEM
-
GAME_OBJECT
public static final EntityColors GAME_OBJECT
-
UNKNOWN
public static final EntityColors UNKNOWN
-
-
Method Detail
-
values
public static EntityColors[] 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 (EntityColors c : EntityColors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntityColors 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
-
getFromObject
public static EntityColors getFromObject(java.lang.Object object)
-
getBorderColor
public java.awt.Color getBorderColor()
-
getFillerColor
public java.awt.Color getFillerColor()
-
colorWithAlpha
protected java.awt.Color colorWithAlpha(java.awt.Color color, int alpha)
-
constrainValue
protected int constrainValue(int value)
-
-