Package net.minecraft.item
Enum FireworkRocketItem.Shape
- java.lang.Object
-
- java.lang.Enum<FireworkRocketItem.Shape>
-
- net.minecraft.item.FireworkRocketItem.Shape
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FireworkRocketItem.Shape>
- Enclosing class:
- FireworkRocketItem
public static enum FireworkRocketItem.Shape extends java.lang.Enum<FireworkRocketItem.Shape>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BURST
CREEPER
LARGE_BALL
SMALL_BALL
STAR
-
Field Summary
Fields Modifier and Type Field Description private static FireworkRocketItem.Shape[]
BY_ID
private int
id
private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
Shape(int p_i47931_3_, java.lang.String p_i47931_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FireworkRocketItem.Shape
byId(int p_196070_0_)
int
getId()
java.lang.String
getName()
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.
-
-
-
Enum Constant Detail
-
SMALL_BALL
public static final FireworkRocketItem.Shape SMALL_BALL
-
LARGE_BALL
public static final FireworkRocketItem.Shape LARGE_BALL
-
STAR
public static final FireworkRocketItem.Shape STAR
-
CREEPER
public static final FireworkRocketItem.Shape CREEPER
-
BURST
public static final FireworkRocketItem.Shape BURST
-
-
Field Detail
-
BY_ID
private static final FireworkRocketItem.Shape[] BY_ID
-
id
private final int id
-
name
private final java.lang.String name
-
-
Method Detail
-
values
public static FireworkRocketItem.Shape[] 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 (FireworkRocketItem.Shape c : FireworkRocketItem.Shape.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FireworkRocketItem.Shape 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
-
getId
public int getId()
-
getName
public java.lang.String getName()
-
byId
public static FireworkRocketItem.Shape byId(int p_196070_0_)
-
-