如何在项目列表枚举上执行百分比?

我正在寻找一些关于如何为我的游戏做百分比事情的提示我想要 1-98 范围内的所有花朵和 99-100 的白色/黑色花朵,以使其更加稀有,感谢您的帮助:)


     public enum FlowerSuit {

    WHITE_FLOWERS("white", ":white:", "470419377456414720", 1),

    YELLOW_FLOWERS("yellow", ":yellow:", "470419561267855360", 1 ),

    RED_FLOWERS("red", ":red:", "470419583250202644", 1),

    RAINBOW_FLOWERS("rainbow", ":rainbow:", "470419602841665536", 1),       

    PASTEL_FLOWERS("pastel", ":pastel:", "470419629450199040", 1),

    ORANGE_FLOWERS("orange", ":orange:", "470419647900942366", 1),

    BLUE_FLOWERS("blue", ":blue:", "470419688753594368", 1),

    BLACK_FLOWERS("black", ":black:", "470419706751352842", 1);

    private final String displayName;

    private final String emoticon;

    private int value;

    private final String id;



     FlowerSuit(String displayName, String emoticon, String id, int value ) {


        this.displayName = displayName;

        this.emoticon = emoticon;

        this.value = value;

        this.id = id;


    }


    public String getDisplayName() {

        return displayName;

    }


    public String getEmoticon() {

        return emoticon;        

    }


    public String getId() {

        return id;

    }


    public int getValue() {

        // TODO Auto-generated method stub

        return value;

    }

}


杨__羊羊
浏览 131回答 3
3回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java