org.bukkit.Rotation#COUNTER_CLOCKWISE源码实例Demo

下面列出了org.bukkit.Rotation#COUNTER_CLOCKWISE 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: Kettle   文件: CraftItemFrame.java
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());
    }
}
 
源代码2 项目: Thermos   文件: CraftItemFrame.java
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());
    }
}
 
 方法所在类
 同类方法