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

public enum RotateBlockMode extends Enum<RotateBlockMode>
Controls which blocks have their orientation rotated when a BlockSelection is rotated.
  • Enum Constant Details

    • ALL

      public static final RotateBlockMode ALL
      All blocks have their orientation rotated.
    • NON_UNIFORM

      public static final RotateBlockMode NON_UNIFORM
      Only blocks with direction-dependent shapes (e.g. stairs, slabs) have their orientation rotated.
    • NON_FULL_BLOCKS

      public static final RotateBlockMode NON_FULL_BLOCKS
      Only blocks that don't fill a full cube (e.g. stairs, fences) have their orientation rotated.
    • NOTHING

      public static final RotateBlockMode NOTHING
      Block positions move but all orientations are preserved.
  • Method Details

    • values

      public static RotateBlockMode[] 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

      public static RotateBlockMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromString

      @Nonnull public static RotateBlockMode fromString(@Nullable String value)
      Parses a RotateBlockMode from its string representation, returning ALL as the default.