Java Code Examples for org.bukkit.Rotation#COUNTER_CLOCKWISE
The following examples show how to use
org.bukkit.Rotation#COUNTER_CLOCKWISE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CraftItemFrame.java From Kettle with GNU General Public License v3.0 | 6 votes |
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()); } }
Example 2
Source File: CraftItemFrame.java From Thermos with GNU General Public License v3.0 | 5 votes |
Rotation toBukkitRotation(int value) { // Translate NMS rotation integer to Bukkit API switch (value) { case 0: return Rotation.NONE; case 1: return Rotation.CLOCKWISE; case 2: return Rotation.FLIPPED; case 3: return Rotation.COUNTER_CLOCKWISE; default: throw new AssertionError("Unknown rotation " + value + " for " + getHandle()); } }