mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-23 21:39:49 +00:00
Add isHorizontal in DirectionUtils
This commit is contained in:
1 parent
caa5f6f3bb
commit
dce57405f3
1 file changed
+5
@@ -16,4 +16,9 @@ public class DirectionUtils {
|
||||
return a != b && a != b.getOpposite() && a != ForgeDirection.UNKNOWN && b != ForgeDirection.UNKNOWN;
|
||||
}
|
||||
|
||||
public static boolean isHorizontal(ForgeDirection a)
|
||||
{
|
||||
return a == ForgeDirection.EAST || a == ForgeDirection.NORTH || a == ForgeDirection.SOUTH || a == ForgeDirection.WEST;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user