@Environment(value=CLIENT) public enum PlayerModelPart extends Enum<PlayerModelPart>
Enum Constant and Description |
---|
CAPE |
HAT |
JACKET |
LEFT_PANTS_LEG |
LEFT_SLEEVE |
RIGHT_PANTS_LEG |
RIGHT_SLEEVE |
Modifier and Type | Field and Description |
---|---|
private int |
bitFlag |
private int |
id |
private String |
name |
private Text |
optionName |
Modifier and Type | Method and Description |
---|---|
int |
getBitFlag() |
String |
getName() |
Text |
getOptionName() |
static PlayerModelPart |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlayerModelPart[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerModelPart CAPE
public static final PlayerModelPart JACKET
public static final PlayerModelPart LEFT_SLEEVE
public static final PlayerModelPart RIGHT_SLEEVE
public static final PlayerModelPart LEFT_PANTS_LEG
public static final PlayerModelPart RIGHT_PANTS_LEG
public static final PlayerModelPart HAT
private final int id
private final int bitFlag
private final String name
private final Text optionName
public static PlayerModelPart[] values()
for (PlayerModelPart c : PlayerModelPart.values()) System.out.println(c);
public static PlayerModelPart 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 getBitFlag()
public String getName()
public Text getOptionName()