Enum ModelBuilder.Perspective
- java.lang.Object
-
- java.lang.Enum<ModelBuilder.Perspective>
-
- net.minecraftforge.client.model.generators.ModelBuilder.Perspective
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ModelBuilder.Perspective>
- Enclosing class:
- ModelBuilder<T extends ModelBuilder<T>>
public static enum ModelBuilder.Perspective extends java.lang.Enum<ModelBuilder.Perspective>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIRSTPERSON_LEFT
FIRSTPERSON_RIGHT
FIXED
GROUND
GUI
HEAD
THIRDPERSON_LEFT
THIRDPERSON_RIGHT
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.String
name
ItemCameraTransforms.TransformType
vanillaType
-
Constructor Summary
Constructors Modifier Constructor Description private
Perspective(ItemCameraTransforms.TransformType vanillaType, java.lang.String name)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelBuilder.Perspective
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ModelBuilder.Perspective[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
THIRDPERSON_RIGHT
public static final ModelBuilder.Perspective THIRDPERSON_RIGHT
-
THIRDPERSON_LEFT
public static final ModelBuilder.Perspective THIRDPERSON_LEFT
-
FIRSTPERSON_RIGHT
public static final ModelBuilder.Perspective FIRSTPERSON_RIGHT
-
FIRSTPERSON_LEFT
public static final ModelBuilder.Perspective FIRSTPERSON_LEFT
-
HEAD
public static final ModelBuilder.Perspective HEAD
-
GUI
public static final ModelBuilder.Perspective GUI
-
GROUND
public static final ModelBuilder.Perspective GROUND
-
FIXED
public static final ModelBuilder.Perspective FIXED
-
-
Field Detail
-
vanillaType
public final ItemCameraTransforms.TransformType vanillaType
-
name
final java.lang.String name
-
-
Constructor Detail
-
Perspective
private Perspective(ItemCameraTransforms.TransformType vanillaType, java.lang.String name)
-
-
Method Detail
-
values
public static ModelBuilder.Perspective[] 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 (ModelBuilder.Perspective c : ModelBuilder.Perspective.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModelBuilder.Perspective 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
-
-