public static enum FireworkRocketItem.Shape extends java.lang.Enum<FireworkRocketItem.Shape>
Enum Constant and Description |
---|
BURST |
CREEPER |
LARGE_BALL |
SMALL_BALL |
STAR |
Modifier and Type | Field and Description |
---|---|
private int |
index |
private java.lang.String |
shapeName |
private static FireworkRocketItem.Shape[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
static FireworkRocketItem.Shape |
get(int indexIn) |
int |
getIndex() |
java.lang.String |
getShapeName() |
static FireworkRocketItem.Shape |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FireworkRocketItem.Shape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FireworkRocketItem.Shape SMALL_BALL
public static final FireworkRocketItem.Shape LARGE_BALL
public static final FireworkRocketItem.Shape STAR
public static final FireworkRocketItem.Shape CREEPER
public static final FireworkRocketItem.Shape BURST
private static final FireworkRocketItem.Shape[] VALUES
private final int index
private final java.lang.String shapeName
public static FireworkRocketItem.Shape[] values()
for (FireworkRocketItem.Shape c : FireworkRocketItem.Shape.values()) System.out.println(c);
public static FireworkRocketItem.Shape valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getIndex()
public java.lang.String getShapeName()
public static FireworkRocketItem.Shape get(int indexIn)