Package kr.toxicity.library.dynamicuv
Enum Class UVFace
- All Implemented Interfaces:
Serializable,Comparable<UVFace>,Constable
Represents the faces of a UV element.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract voiditerate(@NotNull UVElement element, @NotNull Consumer<UVMappedFace> face) Iterates over the mapped faces for the given element.@NotNull ElementVectormapVector(@NotNull ElementVector vector) Maps the given vector according to the face's orientation.@NotNull UVPosGets the UV position for the given space according to the face's orientation.@NotNull StringuvName()Gets the name of the UV face.static UVFaceReturns the enum constant of this class with the specified name.static UVFace[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORTH
The north face. -
SOUTH
The south face. -
EAST
The east face. -
WEST
The west face. -
UP
The up face. -
DOWN
The down face.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
mapVector
Maps the given vector according to the face's orientation.- Parameters:
vector- the vector to map- Returns:
- the mapped vector
-
posOf
Gets the UV position for the given space according to the face's orientation.- Parameters:
space- the UV space- Returns:
- the UV position
-
uvName
Gets the name of the UV face.- Returns:
- the UV face name
-
iterate
public abstract void iterate(@NotNull @NotNull UVElement element, @NotNull @NotNull Consumer<UVMappedFace> face) Iterates over the mapped faces for the given element.- Parameters:
element- the UV elementface- the consumer to accept each mapped face
-