diff --git a/src/mantle/world/DirectionUtils.java b/src/mantle/world/DirectionUtils.java new file mode 100644 index 0000000..a4e6e4c --- /dev/null +++ b/src/mantle/world/DirectionUtils.java @@ -0,0 +1,19 @@ +package mantle.world; + +import net.minecraftforge.common.ForgeDirection; + +/** + * Helper functions for dealing with ForgeDirection + * + * @author Sunstrike + */ +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; + } + +}