Contents
Enum Class RotateBlockMode
java.lang.Object
java.lang.Enum<RotateBlockMode>
com.hypixel.hytale.server.core.prefab.selection.standard.RotateBlockMode
- All Implemented Interfaces:
Serializable, Comparable<RotateBlockMode>, Constable
Controls which blocks have their orientation rotated when a
BlockSelection is rotated.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll blocks have their orientation rotated.Only blocks that don't fill a full cube (e.g. stairs, fences) have their orientation rotated.Only blocks with direction-dependent shapes (e.g. stairs, slabs) have their orientation rotated.Block positions move but all orientations are preserved. -
Method Summary
Modifier and TypeMethodDescriptionstatic RotateBlockModefromString(String value) Parses aRotateBlockModefrom its string representation, returningALLas the default.static RotateBlockModeReturns the enum constant of this class with the specified name.static RotateBlockMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ALL
All blocks have their orientation rotated. -
NON_UNIFORM
Only blocks with direction-dependent shapes (e.g. stairs, slabs) have their orientation rotated. -
NON_FULL_BLOCKS
Only blocks that don't fill a full cube (e.g. stairs, fences) have their orientation rotated. -
NOTHING
Block positions move but all orientations are preserved.
-
-
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
-
fromString
Parses aRotateBlockModefrom its string representation, returningALLas the default.
-