public static enum FireworkItem.Type extends Enum<FireworkItem.Type>
Enum Constant and Description |
---|
BURST |
CREEPER |
LARGE_BALL |
SMALL_BALL |
STAR |
Modifier and Type | Field and Description |
---|---|
private int |
id |
private String |
name |
private static FireworkItem.Type[] |
TYPES |
Modifier and Type | Method and Description |
---|---|
static FireworkItem.Type |
byId(int id) |
int |
getId() |
String |
getName() |
static FireworkItem.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FireworkItem.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FireworkItem.Type SMALL_BALL
public static final FireworkItem.Type LARGE_BALL
public static final FireworkItem.Type STAR
public static final FireworkItem.Type CREEPER
public static final FireworkItem.Type BURST
private static final FireworkItem.Type[] TYPES
private final int id
private final String name
public static FireworkItem.Type[] values()
for (FireworkItem.Type c : FireworkItem.Type.values()) System.out.println(c);
public static FireworkItem.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getId()
@Environment(value=CLIENT) public String getName()
@Environment(value=CLIENT) public static FireworkItem.Type byId(int id)