diff options
author | Fabian Faßbender <fabian.fassbender42@googlemail.com> | 2014-12-02 00:20:31 +0100 |
---|---|---|
committer | Fabian Faßbender <fabian.fassbender42@googlemail.com> | 2014-12-02 00:20:31 +0100 |
commit | 7371301edb1c44ab9153e1fba3722ba2f4e3c411 (patch) | |
tree | 7a369da12e794c7f7f58d73b26084f5e3a247f22 /src/main/java/org/bukkit | |
parent | 0d5693dec5451045871487b7f80920ce96a9dad3 (diff) | |
download | craftbukkit-7371301edb1c44ab9153e1fba3722ba2f4e3c411.tar craftbukkit-7371301edb1c44ab9153e1fba3722ba2f4e3c411.tar.gz craftbukkit-7371301edb1c44ab9153e1fba3722ba2f4e3c411.tar.lz craftbukkit-7371301edb1c44ab9153e1fba3722ba2f4e3c411.tar.xz craftbukkit-7371301edb1c44ab9153e1fba3722ba2f4e3c411.zip |
Forgot that i work in Bukkit... Screw sun conventions
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftItemFrame.java | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftItemFrame.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftItemFrame.java index 0533f168..82370939 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftItemFrame.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftItemFrame.java @@ -49,24 +49,24 @@ public class CraftItemFrame extends CraftHanging implements ItemFrame { Rotation toBukkitRotation(int value) { // Translate NMS rotation integer to Bukkit API switch (value) { - case 0: - return Rotation.NONE; - case 1: - return Rotation.CLOCKWISE_45; - case 2: - return Rotation.CLOCKWISE; - case 3: - return Rotation.CLOCKWISE_135; - case 4: - return Rotation.FLIPPED; - case 5: - return Rotation.FLIPPED_45; - case 6: - return Rotation.COUNTER_CLOCKWISE; - case 7: - return Rotation.COUNTER_CLOCKWISE_45; - default: - throw new AssertionError("Unknown rotation " + value + " for " + getHandle()); + case 0: + return Rotation.NONE; + case 1: + return Rotation.CLOCKWISE_45; + case 2: + return Rotation.CLOCKWISE; + case 3: + return Rotation.CLOCKWISE_135; + case 4: + return Rotation.FLIPPED; + case 5: + return Rotation.FLIPPED_45; + case 6: + return Rotation.COUNTER_CLOCKWISE; + case 7: + return Rotation.COUNTER_CLOCKWISE_45; + default: + throw new AssertionError("Unknown rotation " + value + " for " + getHandle()); } } @@ -78,24 +78,24 @@ public class CraftItemFrame extends CraftHanging implements ItemFrame { static int toInteger(Rotation rotation) { // Translate Bukkit API rotation to NMS integer switch (rotation) { - case NONE: - return 0; - case CLOCKWISE_45: - return 1; - case CLOCKWISE: - return 2; - case CLOCKWISE_135: - return 3; - case FLIPPED: - return 4; - case FLIPPED_45: - return 5; - case COUNTER_CLOCKWISE: - return 6; - case COUNTER_CLOCKWISE_45: - return 7; - default: - throw new IllegalArgumentException(rotation + " is not applicable to an ItemFrame"); + case NONE: + return 0; + case CLOCKWISE_45: + return 1; + case CLOCKWISE: + return 2; + case CLOCKWISE_135: + return 3; + case FLIPPED: + return 4; + case FLIPPED_45: + return 5; + case COUNTER_CLOCKWISE: + return 6; + case COUNTER_CLOCKWISE_45: + return 7; + default: + throw new IllegalArgumentException(rotation + " is not applicable to an ItemFrame"); } } |