Package net.minecraft.util
Enum Rotation
- java.lang.Object
-
- java.lang.Enum<Rotation>
-
- net.minecraft.util.Rotation
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOCKWISE_180
CLOCKWISE_90
COUNTERCLOCKWISE_90
NONE
-
Field Summary
Fields Modifier and Type Field Description private Orientation
rotation
-
Constructor Summary
Constructors Modifier Constructor Description private
Rotation(Orientation p_i231796_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Rotation
getRandom(java.util.Random p_222466_0_)
Rotation
getRotated(Rotation p_185830_1_)
static java.util.List<Rotation>
getShuffled(java.util.Random p_222467_0_)
int
rotate(int p_185833_1_, int p_185833_2_)
Direction
rotate(Direction p_185831_1_)
Orientation
rotation()
static Rotation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Rotation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
rotation
private final Orientation rotation
-
-
Constructor Detail
-
Rotation
private Rotation(Orientation p_i231796_3_)
-
-
Method Detail
-
values
public static Rotation[] 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 (Rotation c : Rotation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Rotation 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
-
rotation
public Orientation rotation()
-
rotate
public int rotate(int p_185833_1_, int p_185833_2_)
-
getRandom
public static Rotation getRandom(java.util.Random p_222466_0_)
-
getShuffled
public static java.util.List<Rotation> getShuffled(java.util.Random p_222467_0_)
-
-