OSDN Git Service

鉱石の生成頻度の列挙追加
[chemicraft/chemicraft.git] / common / pcc / chemicraft / gen / EnumOreSpawnFrequency.java
1 package pcc.chemicraft.gen;
2
3 /**
4  * 鉱石の出現頻度のEnumです。
5  * @author mozipi
6  */
7 public enum EnumOreSpawnFrequency {
8
9         HIGH(10),
10         NORMAL(5),
11         LOW(3),
12         RARE(1);
13         
14         /**
15          * 鉱石の生成頻度
16          */
17         private short frequency;
18         
19         /**
20          * @param par1 鉱石の生成頻度
21          */
22         private EnumOreSpawnFrequency(int par1) {
23                 this.frequency = (short) par1;
24         }
25         
26         /**
27          * 鉱石の生成頻度を返します
28          * @return 鉱石の生成頻度
29          */
30         public short getFrequency() {
31                 return this.frequency;
32         }
33         
34 }