private ChemiCraftAPI chemiCraftAPI = ChemiCraftAPI.instance;
+ public static int gasCollectingBottleID;
public static int atomsID;
public static int compoundsID;
- public static int gasCollectingBottleID;
+ public static Item itemGasCollectingBottle;
public static Item itemAtoms;
public static Item itemCompounds;
- public static Item itemGasCollectingBottle;
private Auxiliary Auxiliary = new Auxiliary();
private Auxiliary.NameAuxiliary NameAuxiliary = Auxiliary.new NameAuxiliary();
public void chemiPreLoadMethod(FMLPreInitializationEvent event)
{
Configuration cfg = new Configuration(event.getSuggestedConfigurationFile());
+ Property gasCollectingBottleIDProp = cfg.getItem("gasCollectingBottleID", 25000);
cfg.load();
- Property atomsIDProp = cfg.getItem("atomsID", 25000);
- Property compoundsIDProp = cfg.getItem("compoundsID", 25001);
- Property gasCollectingBottleIDProp = cfg.getItem("gasCollectingBottleID", 25002);
+ Property atomsIDProp = cfg.getItem("atomsID", 25001);
+ Property compoundsIDProp = cfg.getItem("compoundsID", 25002);
+ gasCollectingBottleID = gasCollectingBottleIDProp.getInt();
atomsID = atomsIDProp.getInt();
compoundsID = compoundsIDProp.getInt();
- gasCollectingBottleID = gasCollectingBottleIDProp.getInt();
cfg.save();
}
@Mod.PostInit // ModLoader.load\83\81\83\\83b\83h\82Æ\93¯\93\99
public void chemiPostLoadMethod(FMLPostInitializationEvent event)
{
+ itemGasCollectingBottle = new ItemGasCollectingBottle(gasCollectingBottleID).setItemName("gasCollectingBottle");
itemAtoms = new ItemAtoms(atomsID).setItemName("atoms");
itemCompounds = new ItemCompounds(compoundsID).setItemName("compounds");
- itemGasCollectingBottle = new ItemGasCollectingBottle(gasCollectingBottleID).setItemName("gasCollectingBottle");
NameAuxiliary.addName(itemAtoms, atomsName);
NameAuxiliary.addName(itemAtoms, "ja_JP", atomsNameJP);