Enum JigsawOrientation
- java.lang.Object
-
- java.lang.Enum<JigsawOrientation>
-
- net.minecraft.world.gen.feature.jigsaw.JigsawOrientation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<JigsawOrientation>
,IStringSerializable
public enum JigsawOrientation extends java.lang.Enum<JigsawOrientation> implements IStringSerializable
-
-
Field Summary
Fields Modifier and Type Field Description private Direction
front
private static it.unimi.dsi.fastutil.ints.Int2ObjectMap<JigsawOrientation>
LOOKUP_TOP_FRONT
private java.lang.String
name
private Direction
top
-
Constructor Summary
Constructors Modifier Constructor Description private
JigsawOrientation(java.lang.String p_i232507_3_, Direction p_i232507_4_, Direction p_i232507_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JigsawOrientation
fromFrontAndTop(Direction p_239641_0_, Direction p_239641_1_)
Direction
front()
java.lang.String
getSerializedName()
private static int
lookupKey(Direction p_239643_0_, Direction p_239643_1_)
Direction
top()
static JigsawOrientation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JigsawOrientation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOWN_EAST
public static final JigsawOrientation DOWN_EAST
-
DOWN_NORTH
public static final JigsawOrientation DOWN_NORTH
-
DOWN_SOUTH
public static final JigsawOrientation DOWN_SOUTH
-
DOWN_WEST
public static final JigsawOrientation DOWN_WEST
-
UP_EAST
public static final JigsawOrientation UP_EAST
-
UP_NORTH
public static final JigsawOrientation UP_NORTH
-
UP_SOUTH
public static final JigsawOrientation UP_SOUTH
-
UP_WEST
public static final JigsawOrientation UP_WEST
-
WEST_UP
public static final JigsawOrientation WEST_UP
-
EAST_UP
public static final JigsawOrientation EAST_UP
-
NORTH_UP
public static final JigsawOrientation NORTH_UP
-
SOUTH_UP
public static final JigsawOrientation SOUTH_UP
-
-
Field Detail
-
LOOKUP_TOP_FRONT
private static final it.unimi.dsi.fastutil.ints.Int2ObjectMap<JigsawOrientation> LOOKUP_TOP_FRONT
-
name
private final java.lang.String name
-
top
private final Direction top
-
front
private final Direction front
-
-
Method Detail
-
values
public static JigsawOrientation[] 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 (JigsawOrientation c : JigsawOrientation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JigsawOrientation 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
-
getSerializedName
public java.lang.String getSerializedName()
- Specified by:
getSerializedName
in interfaceIStringSerializable
-
fromFrontAndTop
public static JigsawOrientation fromFrontAndTop(Direction p_239641_0_, Direction p_239641_1_)
-
front
public Direction front()
-
top
public Direction top()
-
-