Begin refactor, make CarvingVariation and CarvingGroup interfaces

This commit is contained in:
tterrag1098 committed 2015-01-15 00:03:43 -05:00
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();
}
}