From dce57405f3b00dec572cda66333aa388e3377ae3 Mon Sep 17 00:00:00 2001 From: Sunstrike Date: Tue, 10 Dec 2013 15:17:15 +0000 Subject: [PATCH] Add isHorizontal in DirectionUtils --- src/mantle/world/DirectionUtils.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mantle/world/DirectionUtils.java b/src/mantle/world/DirectionUtils.java index a4e6e4c..2599028 100644 --- a/src/mantle/world/DirectionUtils.java +++ b/src/mantle/world/DirectionUtils.java @@ -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; + } + }