Enum Class BlockSorter.BlockSorterType

java.lang.Object
java.lang.Enum<BlockSorter.BlockSorterType>
net.rodofire.easierworldcreator.blockdata.sorter.BlockSorter.BlockSorterType
All Implemented Interfaces:
Serializable, Comparable<BlockSorter.BlockSorterType>, Constable
Enclosing class:
BlockSorter

public static enum BlockSorter.BlockSorterType extends Enum<BlockSorter.BlockSorterType>
enum to decide how the order of the blocks
  • Enum Constant Details

    • ALONG_AXIS

      public static final BlockSorter.BlockSorterType ALONG_AXIS
      will place the blocks on an orthogonal plan to an axis
    • RADIAL_AXIS

      public static final BlockSorter.BlockSorterType RADIAL_AXIS
      will place the blocks closer to an axis first
    • FROM_POINT

      public static final BlockSorter.BlockSorterType FROM_POINT
      Will place the blocks from the closer to a blockPos to the further. You need to set the centerPoint from where the calculations will be done : setCenterPoint()
    • FROM_POINT_INVERTED

      public static final BlockSorter.BlockSorterType FROM_POINT_INVERTED
      will place the blocks from the further to a blockPos to the closer You need to set the centerPoint from where the calculations will be done : setCenterPoint()
    • FROM_RANDOM_POINT

      public static final BlockSorter.BlockSorterType FROM_RANDOM_POINT
      will take a random point of the shape and will place the blocks from the closer to the further You need to set the centerPoint from where the calculations will be done : setCenterPoint()
    • FROM_RANDOM_POINT_INVERTED

      public static final BlockSorter.BlockSorterType FROM_RANDOM_POINT_INVERTED
      will take a random point of the shape and will place the blocks from the further to the closer You need to set the centerPoint from where the calculations will be done : setCenterPoint()
    • RANDOM

      public static final BlockSorter.BlockSorterType RANDOM
      will place the blocks in a random order
    • FROM_LIST

      public static final BlockSorter.BlockSorterType FROM_LIST
      will place the blocks depending on your input
  • Method Details

    • values

      public static BlockSorter.BlockSorterType[] 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 BlockSorter.BlockSorterType 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