Enum ItemModelGenerator.SpanFacing
- java.lang.Object
-
- java.lang.Enum<ItemModelGenerator.SpanFacing>
-
- net.minecraft.client.renderer.model.ItemModelGenerator.SpanFacing
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ItemModelGenerator.SpanFacing>
- Enclosing class:
- ItemModelGenerator
static enum ItemModelGenerator.SpanFacing extends java.lang.Enum<ItemModelGenerator.SpanFacing>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SpanFacing(Direction p_i46215_3_, int p_i46215_4_, int p_i46215_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Direction
getDirection()
int
getXOffset()
int
getYOffset()
private boolean
isHorizontal()
static ItemModelGenerator.SpanFacing
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ItemModelGenerator.SpanFacing[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UP
public static final ItemModelGenerator.SpanFacing UP
-
DOWN
public static final ItemModelGenerator.SpanFacing DOWN
-
LEFT
public static final ItemModelGenerator.SpanFacing LEFT
-
RIGHT
public static final ItemModelGenerator.SpanFacing RIGHT
-
-
Field Detail
-
direction
private final Direction direction
-
xOffset
private final int xOffset
-
yOffset
private final int yOffset
-
-
Constructor Detail
-
SpanFacing
private SpanFacing(Direction p_i46215_3_, int p_i46215_4_, int p_i46215_5_)
-
-
Method Detail
-
values
public static ItemModelGenerator.SpanFacing[] 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 (ItemModelGenerator.SpanFacing c : ItemModelGenerator.SpanFacing.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ItemModelGenerator.SpanFacing 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
-
getDirection
public Direction getDirection()
-
getXOffset
public int getXOffset()
-
getYOffset
public int getYOffset()
-
isHorizontal
private boolean isHorizontal()
-
-