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
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 ConstantsEnum ConstantDescriptionWill place the blocks on an orthogonal plan to an axis.will place the blocks depending on your inputWill 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 Listwill place the blocks closer to an axis firstwill place the blocks in a random order -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockSorter.BlockSorterTypeReturns the enum constant of this class with the specified name.static BlockSorter.BlockSorterType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALONG_AXIS
Will place the blocks on an orthogonal plan to an axis. To use, it, use the methodsetAxisDirection() -
RADIAL_AXIS
will place the blocks closer to an axis first -
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
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
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
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
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 usesetCenterPoint()as well assetAxisDirection(). -
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 usesetCenterPoint()as well assetAxisDirection(). -
RANDOM
will place the blocks in a random order -
INVERSE
Invert the BlockPos List -
FROM_LIST
will place the blocks depending on your input
-
-
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
-