Add support for fullname face direction.

So we can do `w:world:north` on top of the current ``w:world:n`.
This commit is contained in:
benwoo1110 2021-02-21 17:19:18 +08:00
parent 89fd700e32
commit f362f09380
1 changed files with 9 additions and 0 deletions

View File

@ -40,6 +40,15 @@ public class SimpleLocationManipulation implements LocationManipulation {
orientationInts.put("w", 90);
orientationInts.put("nw", 135);
orientationInts.put("north", 180);
orientationInts.put("northeast", 225);
orientationInts.put("east", 270);
orientationInts.put("southeast", 315);
orientationInts.put("south", 0);
orientationInts.put("southwest", 45);
orientationInts.put("west", 90);
orientationInts.put("northwest", 135);
// "freeze" the map:
ORIENTATION_INTS = Collections.unmodifiableMap(orientationInts);
// END CHECKSTYLE-SUPPRESSION: MagicNumberCheck