mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-20 12:29:50 +00:00
Begin refactor, make CarvingVariation and CarvingGroup interfaces
This commit is contained in:
1 parent
be58acd783
commit
36b03d15fc
12 files changed
+206
-75
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package com.cricketcraft.chisel.api.carving;
|
||||
|
||||
public class CarvingUtils {
|
||||
|
||||
/**
|
||||
* The default implementation of {@link ICarvingVariation#compareTo(ICarvingVariation)}
|
||||
*
|
||||
* @param v1
|
||||
* The first {@link ICarvingVariation variation}. Usually 'this'.
|
||||
* @param v2
|
||||
* The second {@link ICarvingVariation variation}. Usually the parameter to the {@code comapreTo} method.
|
||||
* @return A positive integer if the first's order is greater, a negative integer if the second's is greater, and 0 if they are equal.
|
||||
*/
|
||||
public static int compare(ICarvingVariation v1, ICarvingVariation v2) {
|
||||
return v1.getOrder() - v2.getOrder();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user