mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-28 07:55:41 +00:00
Registered AE's Silicon properly. (Thank you AlgorithmX2!)
This commit is contained in:
1 parent
f58fb4158c
commit
b4acaa386b
2 files changed
+19
-63
No files matched your search
@@ -1,62 +0,0 @@
|
||||
package appeng.api;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* Access to stack-able simple items, these include resources...
|
||||
* Craftable ingredients, and a few simple items that don't have log of their own...
|
||||
* DO NOT USE THESE WITHOUT COPYING THEM : ItemStack.copy() - is your friend.
|
||||
*/
|
||||
public class Materials
|
||||
{
|
||||
// Tech 1
|
||||
public static ItemStack matWoodenGear;
|
||||
public static ItemStack matIronNugget;
|
||||
public static ItemStack matCrank;
|
||||
|
||||
// Grinder...
|
||||
public static ItemStack matQuartzDustNether;
|
||||
public static ItemStack matQuartzDust;
|
||||
public static ItemStack matIronDust;
|
||||
public static ItemStack matGoldDust;
|
||||
public static ItemStack matFlour;
|
||||
|
||||
// Tech 3
|
||||
public static ItemStack matSilicon;
|
||||
public static ItemStack matProcessorBasicUncooked;
|
||||
public static ItemStack matProcessorAdvancedUncooked;
|
||||
public static ItemStack matProcessorBasic;
|
||||
public static ItemStack matProcessorAdvanced;
|
||||
|
||||
// ME Construction...
|
||||
public static ItemStack matConversionMatrix;
|
||||
public static ItemStack matStorageCell;
|
||||
public static ItemStack matStorageBlock;
|
||||
public static ItemStack matStorageCluster;
|
||||
public static ItemStack matWireless;
|
||||
public static ItemStack matStorageCellHouseing;
|
||||
public static ItemStack matStorageCellHouseingFuzzy;
|
||||
public static ItemStack matBlankPattern;
|
||||
public static ItemStack matStorageSegment;
|
||||
public static ItemStack matFluxDust;
|
||||
public static ItemStack matFluxCrystal;
|
||||
public static ItemStack matFluxPearl;
|
||||
|
||||
public static ItemStack matSpatialStorageCell;
|
||||
public static ItemStack matSpatialStorageBlock;
|
||||
public static ItemStack matSpatialStorageCluster;
|
||||
|
||||
// World gen...
|
||||
public static ItemStack matQuartz;
|
||||
|
||||
// Other items, such as upgrades.
|
||||
public static ItemStack matWirelessBooster;
|
||||
public static ItemStack matMatterBall;
|
||||
public static ItemStack matSingularity;
|
||||
public static ItemStack matEnderPearlDust;
|
||||
public static ItemStack matQuantumEntangledSingularity;
|
||||
|
||||
// TEST ITEMS!
|
||||
public static ItemStack testItem;
|
||||
}
|
||||
@@ -11,6 +11,7 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.FurnaceRecipes;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import crazypants.enderio.Config;
|
||||
import crazypants.enderio.ModObject;
|
||||
@@ -30,8 +31,25 @@ public class MaterialRecipes {
|
||||
OreDictionary.registerOre("dustTin", new ItemStack(ModObject.itemPowderIngot.actualId, 1, PowderIngot.POWDER_TIN.ordinal()));
|
||||
OreDictionary.registerOre("dustEnderPearl", new ItemStack(ModObject.itemPowderIngot.actualId, 1, PowderIngot.POWDER_ENDER.ordinal()));
|
||||
OreDictionary.registerOre("itemSilicon", new ItemStack(ModObject.itemMaterial.actualId, 1, Material.SILICON.ordinal()));
|
||||
OreDictionary.registerOre("itemSilicon", Materials.matSilicon.copy() );
|
||||
OreDictionary.registerOre("gearStone", new ItemStack(ModObject.itemMachinePart.actualId, 1, MachinePart.BASIC_GEAR.ordinal()));
|
||||
|
||||
/**
|
||||
* Register AE1's Silicon, remove after AE2 is out.
|
||||
*/
|
||||
if ( Loader.isModLoaded( "AppliedEnergistics" ) )
|
||||
{
|
||||
try
|
||||
{
|
||||
Class materialsAE = Class.forName( "appeng.api.Materials" );
|
||||
Object matSilicon = materialsAE.getField( "matSilicon" ).get( materialsAE );
|
||||
if ( matSilicon instanceof ItemStack )
|
||||
OreDictionary.registerOre( "itemSilicon", ((ItemStack) matSilicon).copy() );
|
||||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
/** just ignore any issues. **/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user