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 axiswill place the blocks depending on your inputWill 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()will 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 -
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() -
RANDOM
will place the blocks in a random order -
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
-