DirectionUtils.

This commit is contained in:
Sunstrike committed 2013-12-10 00:28:21 +00:00
1 parent fb07bc9a38
commit c1b89ad1e6
1 file changed
+19
+19
View File
@@ -0,0 +1,19 @@
package mantle.world;
import net.minecraftforge.common.ForgeDirection;
/**
* Helper functions for dealing with ForgeDirection
*
* @author Sunstrike <[email protected]>
*/
public class DirectionUtils {
private DirectionUtils() {} // All static
public static boolean isRightAngles(ForgeDirection a, ForgeDirection b)
{
return a != b && a != b.getOpposite() && a != ForgeDirection.UNKNOWN && b != ForgeDirection.UNKNOWN;
}
}