OSDN Git Service

tc
[chemicraft/chemicraft.git] / common / pcc / chemicraft / ChemiCraftConfiguration.java
index c4a08f2..bbe02dd 100644 (file)
@@ -1,19 +1,33 @@
 package pcc.chemicraft;
 
 package pcc.chemicraft;
 
+/**
+ * @author mozipi
+ */
 public class ChemiCraftConfiguration {
 
 public class ChemiCraftConfiguration {
 
+       /**
+        * the Now ID.
+        */
        private int nowID;
 
        public ChemiCraftConfiguration(int baseID) {
                this.nowID = baseID;
        }
 
        private int nowID;
 
        public ChemiCraftConfiguration(int baseID) {
                this.nowID = baseID;
        }
 
+       /**
+        * 現在のIDを取得します。
+        * @return 現在のID
+        */
        public int getNowID() {
                return this.nowID;
        }
 
        public int getNowID() {
                return this.nowID;
        }
 
+       /**
+        * IDを1つ追加します
+        * @return 追加後のID
+        */
        public int additionID() {
        public int additionID() {
-               return this.nowID++;
+               return ++this.nowID;
        }
 
 }
        }
 
 }