Enum ItemModelGenerator.Side
java.lang.Object
java.lang.Enum<ItemModelGenerator.Side>
net.minecraft.client.render.model.json.ItemModelGenerator.Side
- All Implemented Interfaces:
Serializable
,Comparable<ItemModelGenerator.Side>
,java.lang.constant.Constable
- Enclosing class:
- ItemModelGenerator
@Environment(CLIENT) static enum ItemModelGenerator.Side extends Enum<ItemModelGenerator.Side>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Direction
getDirection()
int
getOffsetX()
int
getOffsetY()
private boolean
isVertical()
static ItemModelGenerator.Side
valueOf(String name)
Returns the enum constant of this type with the specified name.static ItemModelGenerator.Side[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UP
-
DOWN
-
LEFT
-
RIGHT
-
-
Field Details
-
direction
-
offsetX
private final int offsetX -
offsetY
private final int offsetY
-
-
Constructor Details
-
Side
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDirection
-
getOffsetX
public int getOffsetX() -
getOffsetY
public int getOffsetY() -
isVertical
private boolean isVertical()
-