mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-25 22:34:29 +00:00
DirectionUtils.
This commit is contained in:
1 parent
fb07bc9a38
commit
c1b89ad1e6
1 file changed
+19
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user