package pcc.chemicraft;
+import net.minecraft.block.Block;
+import net.minecraft.block.material.Material;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.Configuration;
+import net.minecraftforge.common.Property;
+import net.minecraftforge.oredict.OreDictionary;
import pcc.chemicraft.block.BlockChemicalCombinationTable;
import pcc.chemicraft.block.BlockChemicalCraftingTable;
import pcc.chemicraft.block.BlockElectrolysisTable;
import pcc.chemicraft.block.BlockPyrolysisTable;
import pcc.chemicraft.block.BlockToolAndWeaponCraftingTable;
+import pcc.chemicraft.compounds.CompoundDebug;
import pcc.chemicraft.compounds.CompoundWater;
+import pcc.chemicraft.creativetab.CreativeTabAtomsOre;
+import pcc.chemicraft.creativetab.CreativeTabChemiCraft;
import pcc.chemicraft.debug.CommandDeleteItem;
import pcc.chemicraft.debug.CommandGenDebugRoom;
import pcc.chemicraft.debug.CommandSetTile;
import pcc.chemicraft.item.ItemAtomsGrenade;
import pcc.chemicraft.item.ItemCompounds;
import pcc.chemicraft.item.ItemGasCollectingBottle;
+import pcc.chemicraft.ore.BlockAtomsOre;
+import pcc.chemicraft.ore.ItemAtomsOre;
import pcc.chemicraft.system.CommonProxy;
import pcc.chemicraft.system.PacketHandler;
import pcc.chemicraft.tileentity.TileEntityChemicalCombinationTable;
import pcc.chemicraft.tileentity.TileEntityPyrolysisTable;
import pcc.chemicraft.tileentity.TileEntityToolAndWeaponCraftingTable;
import pcc.chemicraft.util.Auxiliary;
-import pcc.chemicraft.util.CreativeTabAtoms;
-import pcc.chemicraft.util.NBTRecipeGrenade;
-import pcc.chemicraft.util.WorldProviderChemical;
import pcc.chemicraft.util.Auxiliary.ArrayAuxiliary;
import pcc.chemicraft.util.Auxiliary.NameAuxiliary;
-import net.minecraft.block.Block;
-import net.minecraft.block.material.Material;
-import net.minecraft.creativetab.CreativeTabs;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraftforge.common.BiomeManager;
-import net.minecraftforge.common.Configuration;
-import net.minecraftforge.common.DimensionManager;
-import net.minecraftforge.common.Property;
+import pcc.chemicraft.util.NBTRecipeGrenade;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
-
/**
* ChemiCraft本体
* @author P.C.C.
/**
* ChemiCraftのCreativeTab.
*/
- public static final CreativeTabs creativeTab = new CreativeTabAtoms("ChemiCraft");
+ public static final CreativeTabs creativeTabChemiCraft = new CreativeTabChemiCraft("ChemiCraft");
+ public static final CreativeTabs creativeTabAtomsOre = new CreativeTabAtomsOre("AtomsOre");
/**
* ItemID.
public int toolAndWeaponCraftingTableID;
public int chemicalCraftingTableID;
+
+ public int[] atomsOreID = new int[16];
+
/**
* GUIID.
*/
public Block blockToolAndWeaponCraftingTable;
public Block blockChemicalCraftingTable;
+ public Block[] blockAtomsOre = new Block[atomsOreID.length];
+
/**
* Item型変数.
*/
/**
* このmodで使用するTextureのパス.
*/
- public final String ITEMATOMSTEXTURE = "/pcc/chemicraft/items/Atoms.png";
- public final String ITEMCOMPOUNDSTEXTURE = "/pcc/chemicraft/items/Compounds.png";
- public final String ITEMTEXTURE = "/pcc/chemicraft/items/items.png";
- public final String BLOCKCHEMICALCRAFTINGTABLETEXTURE = "/pcc/chemicraft/blocks/cctable.png";
- public final String GUIPYROLYSISTEXTURE = "/pcc/chemicraft/guis/Pyrolysis.png";
- public final String GUIELECTROLYSISTEXTURE = "/pcc/chemicraft/guis/Electrolysis.png";
- public final String GUICHEMICALCOMBINATIONTEXTURE = "/pcc/chemicraft/guis/ChemicalCombination.png";
- public final String GUITOOLANDWEAPONCRAFTINGTEXTURE = "/pcc/chemicraft/guis/ToolAndWeaponCrafting.png";
- public final String GUICHEMICALCRAFTINGTEXTURE = "/pcc/chemicraft/guis/MaterialCrafting.png";
+ public final String ITEM_ATOMS_TEXTURE = "/pcc/chemicraft/items/Atoms.png";
+ public final String ITEM_COMPOUNDS_TEXTURE = "/pcc/chemicraft/items/Compounds.png";
+ public final String ITEM_TEXTURE = "/pcc/chemicraft/items/items.png";
+ public final String BLOCK_CHEMICAL_CRAFTING_TABLE_TEXTURE = "/pcc/chemicraft/blocks/cctable.png";
+ public final String BLOCK_ATOMS_ORE_TEXTURE = "/pcc/chemicraft/blocks/AtomsOre.png";
+ public final String GUI_PYROLYSIS_TEXTURE = "/pcc/chemicraft/guis/Pyrolysis.png";
+ public final String GUI_ELECTROLYSIS_TEXTURE = "/pcc/chemicraft/guis/Electrolysis.png";
+ public final String GUI_CHEMICALCOMBINATION_TEXTURE = "/pcc/chemicraft/guis/ChemicalCombination.png";
+ public final String GUI_TOOLANDWEAPONCRAFTING_TEXTURE = "/pcc/chemicraft/guis/ToolAndWeaponCrafting.png";
+ public final String GUI_CHEMICALCRAFTING_TEXTURE = "/pcc/chemicraft/guis/MaterialCrafting.png";
/**
* このmodに必要な補助クラスのインスタンス.
Property toolAndWeaponCraftingTableIDProp = cfg.getBlock("ToolAndWeaponCraftingTableID", 2403);
Property chemicalCraftingTableIDProp = cfg.getBlock("ChemicalCraftingTableID", 2404);
+ Property[] atomsOreIDProp = new Property[this.atomsOreID.length];
+ for (int i = 0; i < atomsOreIDProp.length; i++) {
+ atomsOreIDProp[i] = cfg.getBlock("AtomsOreID:" + i, 2500 + i);
+ }
+
Property atomsIDProp = cfg.getItem("AtomsID", 25000);
Property compoundsIDProp = cfg.getItem("CompoundsID", 25001);
Property gasCollectingBottleIDProp = cfg.getItem("gasCollectingBottleID", 25002);
this.chemicalConbinationTableID = chemicalCombinationTableIDProp.getInt();
this.toolAndWeaponCraftingTableID = toolAndWeaponCraftingTableIDProp.getInt();
this.chemicalCraftingTableID = chemicalCraftingTableIDProp.getInt();
+ for (int i = 0; i < atomsOreID.length; i++) {
+ this.atomsOreID[i] = atomsOreIDProp[i].getInt();
+ }
this.atomsID = atomsIDProp.getInt();
this.compoundsID = compoundsIDProp.getInt();
this.gasCollectingBottleID = gasCollectingBottleIDProp.getInt();
setResistance(0.0F).
setStepSound(Block.soundStoneFootstep).
setBlockName("PyrolysisTable");
- this.blockElectrolysisTable = new BlockElectrolysisTable(this.electrolysisTableID, 1, Material.ground).
+ this.blockElectrolysisTable = new BlockElectrolysisTable(this.electrolysisTableID, 0, Material.ground).
setHardness(2.0F).
setResistance(0.0F).
setStepSound(Block.soundStoneFootstep).
setBlockName("ElectrolysisTable");
- this.blockChemicalCombinationTable = new BlockChemicalCombinationTable(this.chemicalConbinationTableID, 2, Material.ground).
+ this.blockChemicalCombinationTable = new BlockChemicalCombinationTable(this.chemicalConbinationTableID, 0, Material.ground).
setHardness(2.0F).
setResistance(0.0F).
setStepSound(Block.soundStoneFootstep).
setBlockName("ChemicalCombinationTable");
- this.blockToolAndWeaponCraftingTable = new BlockToolAndWeaponCraftingTable(this.toolAndWeaponCraftingTableID, 3, Material.ground).
+ this.blockToolAndWeaponCraftingTable = new BlockToolAndWeaponCraftingTable(this.toolAndWeaponCraftingTableID, 0, Material.ground).
setHardness(2.0F).
setResistance(0.0F).
setStepSound(Block.soundStoneFootstep).
setBlockName("ToolAndWeaponCraftingTable");
- this.blockChemicalCraftingTable = new BlockChemicalCraftingTable(chemicalCraftingTableID, 4, Material.ground).
+ this.blockChemicalCraftingTable = new BlockChemicalCraftingTable(this.chemicalCraftingTableID, 0, Material.ground).
setHardness(2.0F).
setResistance(0.0F).
setStepSound(Block.soundStoneFootstep).
setBlockName("ChemicalCraftingTable");
+ for (int i = 0; i < blockAtomsOre.length; i++)
+ {
+ this.blockAtomsOre[i] = new BlockAtomsOre(this.atomsOreID[i]).
+ setHardness(3.0F).
+ setResistance(0.0F).
+ setStepSound(Block.soundStoneFootstep).
+ setBlockName("AtomsOre" + i);
+ GameRegistry.registerBlock(blockAtomsOre[i], ItemAtomsOre.class, "AtomsOre" + i);
+ }
+
// Itemを追加します
this.itemAtoms = new ItemAtoms(this.atomsID).setItemName("atoms");
this.itemCompounds = new ItemCompounds(this.compoundsID).setItemName("compounds");
// BlockをMinecraftに登録します
GameRegistry.registerBlock(this.blockPyrolysisTable, "BlockPyrolysisTable");
- GameRegistry.registerBlock(this.blockElectrolysisTable, "ElectrolysisTable");
GameRegistry.registerBlock(this.blockChemicalCombinationTable, "BlockChemicalCombinationTable");
GameRegistry.registerBlock(this.blockToolAndWeaponCraftingTable, "BlockToolAndWeaponCraftingTable");
GameRegistry.registerBlock(this.blockChemicalCraftingTable, "BlockMaterialCraftingTable");
+ GameRegistry.registerBlock(this.blockElectrolysisTable, "BlockElectrolysisTable");
// Blockの名前を設定します
this.nameAuxiliary.addName(this.blockPyrolysisTable, "PyrolysisTable");
this.nameAuxiliary.addName(this.blockPyrolysisTable, "ja_JP", "熱分解台");
- this.nameAuxiliary.addName(this.blockElectrolysisTable, "ElectrolysisTable");
- this.nameAuxiliary.addName(this.blockElectrolysisTable, "ja_JP", "電気分解台");
this.nameAuxiliary.addName(this.blockChemicalCombinationTable, "ChemicalCombinationTable");
this.nameAuxiliary.addName(this.blockChemicalCombinationTable, "ja_JP", "化合台");
- this.nameAuxiliary.addName(blockToolAndWeaponCraftingTable, "ToolAndWeaponCraftingTable");
- this.nameAuxiliary.addName(blockToolAndWeaponCraftingTable, "ja_JP", "ツール&武器製作台");
- this.nameAuxiliary.addName(blockChemicalCraftingTable, "ChemicalCraftingTable");
- this.nameAuxiliary.addName(blockChemicalCraftingTable, "ja_JP", "素材製作台");
+ this.nameAuxiliary.addName(this.blockToolAndWeaponCraftingTable, "ToolAndWeaponCraftingTable");
+ this.nameAuxiliary.addName(this.blockToolAndWeaponCraftingTable, "ja_JP", "ツール&武器製作台");
+ this.nameAuxiliary.addName(this.blockChemicalCraftingTable, "ChemicalCraftingTable");
+ this.nameAuxiliary.addName(this.blockChemicalCraftingTable, "ja_JP", "素材製作台");
+ this.nameAuxiliary.addName(this.blockElectrolysisTable, "ElectrolysisTable");
+ this.nameAuxiliary.addName(this.blockElectrolysisTable, "ja_JP", "電気分解台");
// Itemの名前を設定します
this.nameAuxiliary.addName(this.itemAtoms, ATOMSNAME);
// TileEntityを追加します
GameRegistry.registerTileEntity(TileEntityPyrolysisTable.class, "TileEntityPyrolysisTable");
- GameRegistry.registerTileEntity(TileEntityElectrolysisTable.class, "TileEntityElectrolysisTable");
GameRegistry.registerTileEntity(TileEntityChemicalCombinationTable.class, "TileEntityChemicalCombinationTable");
GameRegistry.registerTileEntity(TileEntityToolAndWeaponCraftingTable.class, "TileEntityToolAndWeaponCraftingTable");
GameRegistry.registerTileEntity(TileEntityChemicalCraftingTable.class, "TileEntityChemicalCraftingTable");
+ GameRegistry.registerTileEntity(TileEntityElectrolysisTable.class, "TileEntityElectrolysisTable");
// GUIを追加します
NetworkRegistry.instance().registerGuiHandler(instance, proxy);
proxy.registerRenderInformation();
//化学作業台類のレシピを追加します
- GameRegistry.addRecipe(new ItemStack(this.blockElectrolysisTable),
- new Object[]{
- "XYX", "ZAZ", "ZZZ",
- Character.valueOf('X'), new ItemStack(Item.ingotIron),
- Character.valueOf('Y'), new ItemStack(Block.workbench),
- Character.valueOf('Z'), new ItemStack(Block.stone),
- Character.valueOf('A'), new ItemStack(Block.tnt),
- });
GameRegistry.addRecipe(new ItemStack(this.blockPyrolysisTable),
new Object[]{
"XYX", "ZAZ", "ZZZ",
});
//鉱石を追加します
- api.addAtomsOre(Block.blockDiamond.blockID, 0, 5, 20, 20); //テスト用。ダイヤモンドブロックを生成します
- //鉱石の生成
- for (int i = 0; i < api.getAtomsOreIDList().size(); i++) {
- GameRegistry.registerWorldGenerator(new WorldGenAtomsOre(api.getAtomsOreIDList().get(i), api.getAtomsOreMetaList().get(i), api.getAtomsOreSizeList().get(i), api.getAtomsOreFrequencyList().get(i), api.getAtomsOrePosYList().get(i)));
- }
+ // リチウム
+ api.addAtomsOre("Petalite", this.atomsOreID[api.getAtomsOreIndex()], 5, 10, 50); // LiAlSi4O10
+ api.addAtomsOreLanguage("Petalite", "ペタル石", "ja_JP");
+ api.addAtomsOre("Spodumene", this.atomsOreID[api.getAtomsOreIndex()], 5, 15, 50); // LiAlSi2O6
+ api.addAtomsOreLanguage("Spodumene", "リチア輝石", "ja_JP");
+
+ // ベリリウム
+ api.addAtomsOre("Beryl", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // Be3Al2Si6O18
+ api.addAtomsOreLanguage("Beryl", "緑柱石", "ja_JP");
+ api.addAtomsOre("Chrysoberyl", this.atomsOreID[api.getAtomsOreIndex()], 5, 200, 50); // BeAl2O4
+ api.addAtomsOreLanguage("Chrysoberyl", "金緑石", "ja_JP");
+
+ // ホウ素
+ api.addAtomsOre("Ulexite", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // NaCaB5O6(OH)6・5H2O
+ api.addAtomsOreLanguage("Ulexite", "ウレキサイト", "ja_JP"); // ホウ酸塩鉱石
+
+ // フッ素
+ api.addAtomsOre("Fluorite", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // CaF2
+ api.addAtomsOreLanguage("Fluorite", "蛍石", "ja_JP");
+ api.addAtomsOre("Cryolite", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // Na3AlF6
+ api.addAtomsOreLanguage("Cryolite", "氷晶石", "ja_JP");
+
+ // ナトリウム
+ api.addAtomsOre("RockSalt", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // NaCl
+ api.addAtomsOreLanguage("RockSalt", "岩塩", "ja_JP");
+
+ // マグネシウム
+ api.addAtomsOre("Dolomite", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // CaMg(CO3)2
+ api.addAtomsOreLanguage("Dolomite", "苦灰石", "ja_JP");
+ api.addAtomsOre("Magnesite", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // MgCO3
+ api.addAtomsOreLanguage("Magnesite", "菱苦土石", "ja_JP");
+
+ // アルミニウム
+ api.addAtomsOre("Gibbsite", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // Al(OH)3
+ api.addAtomsOreLanguage("Gibbsite", "ギブス石", "ja_JP");
+ api.addAtomsOre("Ruby", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // Al2O3
+ api.addAtomsOreLanguage("Ruby", "ルビー", "ja_JP");
+ api.addAtomsOre("Sapphire", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // Al2O3
+ api.addAtomsOreLanguage("Sapphire", "サファイア", "ja_JP");
+
+ // ケイ素
+ api.addAtomsOre("Quartz", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // SiO2
+ api.addAtomsOreLanguage("Quartz", "石英", "ja_JP");
+
+ // リン
+ api.addAtomsOre("Fluorapatite", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // Ca5(PO4)3F
+ api.addAtomsOreLanguage("Fluorapatite", "フッ素リン灰石", "ja_JP");
+ api.addAtomsOre("Chlorapatite", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // Ca5(PO4)3Cl
+ api.addAtomsOreLanguage("Chlorapatite", "塩素燐灰石", "ja_JP");
+ api.addAtomsOre("Hydroxylapatite", this.atomsOreID[api.getAtomsOreIndex()], 5, 20, 50); // Ca5(PO4)3(OH)
+ api.addAtomsOreLanguage("Hydroxylapatite", "水酸燐灰石", "ja_JP");
//化合物を追加します
- api.addLangCompound("ja_JP", "ChlorousAcid", "亜塩素酸");
-
- api.addLangCompound("ja_JP", "CarbonMonoxide", "一酸化炭素");
- api.addLangCompound("ja_JP", "CarbonDioxide", "二酸化炭素");
- api.addLangCompound("ja_JP", "Water", "水");
-
+ this.api.addCompound("ja_JP", "ChlorousAcid", "亜塩素酸");
+ this.api.addCompound("ja_JP", "CarbonMonoxide", "一酸化炭素");
+ this.api.addCompound("ja_JP", "CarbonDioxide", "二酸化炭素");
+ this.api.addCompound("ja_JP", "Water", "水");
+ this.api.addCompound("ja_JP", "SodiumChloride", "塩化ナトリウム");
+ this.api.addCompound("ja_JP", "SodiumBicarbonate", "重曹");
+ this.api.addCompound("ja_JP", "CarbonMonoxide", "一酸化炭素");
+ this.api.addCompound("ja_JP", "CarbonDioxide", "二酸化炭素");
+ this.api.addCompound("ja_JP", "Water", "水");
//化合物のHandlerを設定します
- api.settingCompoundHandler("Water", new CompoundWater());
+ this.api.settingCompoundHandler("Water", new CompoundWater());
//化合物のレシピを追加します
- api.addChemicalCombinationRecipe(new String[]{"H", "O", "Cl"}, new Integer[]{1, 2, 1}, new ItemStack(this.itemCompounds, 1, api.getCompound("ChlorousAcid")));
-
- api.addChemicalCombinationRecipe(new String[]{"H", "O"}, new Integer[]{2, 1}, new ItemStack(this.itemCompounds, 1, api.getCompound("Water")));
+ this.api.addChemicalCombinationRecipe(new String[]{"H", "O", "Cl"}, new Integer[]{1, 2, 1}, new ItemStack(this.itemCompounds, 1, this.api.getCompound("ChlorousAcid")));
+ this.api.addChemicalCombinationRecipe(new String[]{"Na", "O", "H"}, new Integer[]{1, 1, 1}, new ItemStack(this.itemCompounds, 1, api.getCompound("SodiumChloride")));
+ this.api.addChemicalCombinationRecipe(new String[]{"H", "O", "Cl"}, new Integer[]{1, 2, 1}, new ItemStack(this.itemCompounds, 1, api.getCompound("ChlorousAcid")));
+ this.api.addChemicalCombinationRecipe(new String[]{"H", "O"}, new Integer[]{2, 1}, new ItemStack(this.itemCompounds, 1, this.api.getCompound("Water")));
//手榴弾の追加
- api.addMaterialRecipe(
- new ItemStack[]{
- null,
- new ItemStack(Block.stone),
- null,
- new ItemStack(Block.stone),
- new ItemStack(Item.gunpowder),
- new ItemStack(Block.stone),
- null,
- new ItemStack(Block.stone),
- null
- },
- new ItemStack(this.itemAtomGrenade, 16, 0),
- new NBTRecipeGrenade()
+ this.api.addMaterialRecipe(new ItemStack[] {
+ null,
+ new ItemStack(Block.stone),
+ null,
+ new ItemStack(Block.stone),
+ new ItemStack(Item.gunpowder),
+ new ItemStack(Block.stone),
+ null,
+ new ItemStack(Block.stone),
+ null
+ },
+ new ItemStack(this.itemAtomGrenade, 16, 0),
+ new NBTRecipeGrenade()
);
- //Tickingの追加
- this.proxy.registerTickHandler();
+
+ this.api.addDecompositionRecipe(new ItemStack(Item.potion, 1, 0),
+ new int[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN},
+ new int[] {2, 1});
+
+ this.api.addDecompositionRecipe(new ItemStack(this.itemCompounds, 1, this.api.getCompound("Water")),
+ new int[] {ChemiCraftData.HYDROGEN, ChemiCraftData.OXYGEN},
+ new int[] {2, 1});
+
+ this.api.addDecompositionFuel(new ItemStack(Item.coal), 2000*8);
}
private void apiProcessing(final FMLPostInitializationEvent event) {
// API用の処理
- this.nameAuxiliary.addName(itemCompounds, api.getCompoundsName().toArray());
- for (int i = 0; i < api.getCompoundsLang().size(); i++) {
- this.nameAuxiliary.addName(itemCompounds, api.getCompoundsLang().get(i), api.getCompoundsLangName().toArray());
+ for (int i = 0; i < api.getCompoundsName().sizeKeysList(); i++)
+ {
+ for (int j = 0; j < api.getCompoundsName().sizeElementsList(api.getCompoundsName().getKeyList(i)); j++)
+ {
+ this.nameAuxiliary.addName(new ItemStack(itemCompounds, 0, i), api.getCompoundsLang().get(api.getCompoundsName().getKeyList(i), j), api.getCompoundsName().get(api.getCompoundsName().getKeyList(i), j));
+ }
+ }
+
+ for (int i = 0; i < api.getAtomsOreNameListHash().sizeKeysList(); i++)
+ {
+ for (int j = 0; j < api.getAtomsOreNameListHash().sizeElementsList(api.getAtomsOreNameListHash().getKeyList(i)); j++)
+ {
+ this.nameAuxiliary.addName(new ItemStack(blockAtomsOre[i / 16], 0, i - i / 16 * 16), api.getAtomsOreLangListHash().get(api.getAtomsOreNameListHash().getKeyList(i), j), api.getAtomsOreNameListHash().get(api.getAtomsOreNameListHash().getKeyList(i), j));
+ OreDictionary.registerOre("ore" + api.getAtomsOreNameListHash().getKeyList(i), new ItemStack(blockAtomsOre[i / 16], 1, i - i / 16 * 16));
+ }
}
+
+ for (int i = 0; i < api.getAtomsOres().size(); i++)
+ {
+ GameRegistry.registerWorldGenerator(api.getAtomsOres().get(i));
+ }
+
}
private void debug(final FMLPostInitializationEvent event) {
+ //DebugTickingの追加
+ this.proxy.registerTickHandler();
+ this.api.addCompound("Debug");
+ this.api.settingCompoundHandler("Debug", new CompoundDebug());
+
+ /*
+ * TWDebug
+ */
+ this.api.addToolAndWeaponRecipe(new ItemStack[] {
+ new ItemStack(Block.stone, 1, 1)
+ },
+ new ItemStack(Block.dirt, 1, 0));
+
}
}