diff options
Diffstat (limited to 'src/Java/miscutil/xmod/gregtech')
102 files changed, 20338 insertions, 0 deletions
diff --git a/src/Java/miscutil/xmod/gregtech/HANDLER_GT.java b/src/Java/miscutil/xmod/gregtech/HANDLER_GT.java new file mode 100644 index 0000000000..5f5de99ad7 --- /dev/null +++ b/src/Java/miscutil/xmod/gregtech/HANDLER_GT.java @@ -0,0 +1,44 @@ +package miscutil.xmod.gregtech; + +import gregtech.api.util.GT_Config; +import miscutil.xmod.gregtech.api.enums.GregtechOrePrefixes.GT_Materials; +import miscutil.xmod.gregtech.common.blocks.fluid.GregtechFluidHandler; +import miscutil.xmod.gregtech.common.items.MetaGeneratedGregtechItems; + +public class HANDLER_GT { + + public static GT_Config mMaterialProperties = null; + + public static void preInit(){ + new MetaGeneratedGregtechItems(); + if (mMaterialProperties != null){ + GT_Materials.init(mMaterialProperties); + GregtechFluidHandler.run(); + //new MetaGeneratedGregtechTools(); + //new Processing_Ingot1(); + //new Processing_Plate1(); + //new Processing_Block(); + } + //new Processing_HotIngots(); + } + + public static void init(){ + /*if (Meta_GT_Proxy.mSortToTheEnd) { + new GT_ItemIterator().run(); + Meta_GT_Proxy.registerUnificationEntries(); + new GT_FuelLoader().run(); + }*/ + } + + public static void postInit(){ + /*Meta_GT_Proxy.activateOreDictHandler(); + if (Meta_GT_Proxy.mSortToTheEnd) { + Meta_GT_Proxy.registerUnificationEntries(); + } else { + new GT_ItemIterator().run(); + Meta_GT_Proxy.registerUnificationEntries(); + new GT_FuelLoader().run(); + }*/ + } + +} diff --git a/src/Java/miscutil/xmod/gregtech/api/energy/IC2ElectricItem.java b/src/Java/miscutil/xmod/gregtech/api/energy/IC2ElectricItem.java new file mode 100644 index 0000000000..5b0db2ed33 --- /dev/null +++ b/src/Java/miscutil/xmod/gregtech/api/energy/IC2ElectricItem.java @@ -0,0 +1,55 @@ +package miscutil.xmod.gregtech.api.energy; + +import net.minecraft.item.Item; +import net.minecraft.item.ItemStack; + +/** + * Provides the ability to store energy on the implementing item. + * + * The item should have a maximum damage of 13. + */ +public interface IC2ElectricItem { + /** + * Determine if the item can be used in a machine or as an armor part to supply energy. + * + * @return Whether the item can supply energy + */ + boolean canProvideEnergy(ItemStack itemStack); + + /** + * Get the item ID to use for a charge energy greater than 0. + * + * @return Item ID to use + */ + Item getChargedItem(ItemStack itemStack); + + /** + * Get the item ID to use for a charge energy of 0. + * + * @return Item ID to use + */ + Item g |
