Enum Class BlockSorter.BlockSorterType

java.lang.Object
java.lang.Enum<BlockSorter.BlockSorterType>
fr.rodofire.ewc.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
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Will place the blocks on an orthogonal plan to an axis.
    will place the blocks depending on your input
    Will sort the BlockPos depending on the distance between the plane and the BlockPos.
    Will sort the BlockPos depending on the distance between the plane and the BlockPos.
    Will place the blocks from the closer to a blockPos to the further.
    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()
    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()
    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()
    Invert the BlockPos List
    will place the blocks closer to an axis first
    will place the blocks in a random order
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ALONG_AXIS

      public static final BlockSorter.BlockSorterType ALONG_AXIS
      Will place the blocks on an orthogonal plan to an axis. To use, it, use the method setAxisDirection()
    • 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()
    • FROM_PLANE

      public static final BlockSorter.BlockSorterType FROM_PLANE
      Will sort the BlockPos depending on the distance between the plane and the BlockPos. The closer BlockPos will be first while the further will be last To create a plane, you have to use setCenterPoint() as well as setAxisDirection().
    • FROM_PLANE_INVERTED

      public static final BlockSorter.BlockSorterType FROM_PLANE_INVERTED
      Will sort the BlockPos depending on the distance between the plane and the BlockPos. The further BlockPos will be first while the closer will be last To create a plane, you have to use setCenterPoint() as well as setAxisDirection().
    • RANDOM

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

      public static final BlockSorter.BlockSorterType INVERSE
      Invert the BlockPos List
    • 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