aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/GregTechAPI.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/GregTechAPI.java')
-rw-r--r--src/main/java/gregtech/api/GregTechAPI.java296
1 files changed, 0 insertions, 296 deletions
diff --git a/src/main/java/gregtech/api/GregTechAPI.java b/src/main/java/gregtech/api/GregTechAPI.java
index 6cabb8e04c..e10c773579 100644
--- a/src/main/java/gregtech/api/GregTechAPI.java
+++ b/src/main/java/gregtech/api/GregTechAPI.java
@@ -26,7 +26,6 @@ import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayerMP;
-import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
@@ -47,10 +46,6 @@ import gregtech.api.interfaces.internal.IGTRecipeAdder;
import gregtech.api.interfaces.internal.IThaumcraftCompat;
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
import gregtech.api.interfaces.tileentity.IMachineBlockUpdateable;
-import gregtech.api.items.GTGenericItem;
-import gregtech.api.items.ItemCoolantCell;
-import gregtech.api.items.ItemCoolantCellIC;
-import gregtech.api.items.ItemTool;
import gregtech.api.metatileentity.BaseMetaTileEntity;
import gregtech.api.objects.GTCoverDefault;
import gregtech.api.objects.GTCoverNone;
@@ -287,20 +282,7 @@ public class GregTechAPI {
static {
sItemStackMappings.add(sCovers);
sItemStackMappings.add(sCoverBehaviors);
-
dummyWorlds.add(GTDummyWorld.class);
- tryAddDummyWorld("blockrenderer6343.client.world.DummyWorld");
- }
-
- private static void tryAddDummyWorld(String className) {
- ClassLoader cl = GregTechAPI.class.getClassLoader();
- Class<?> clazz;
- try {
- clazz = Class.forName(className, false, cl);
- } catch (ReflectiveOperationException ex) {
- return;
- }
- dummyWorlds.add(clazz);
}
public static void addDummyWorld(Class<?> clazz) {
@@ -408,284 +390,6 @@ public class GregTechAPI {
}
/**
- * Creates a new Coolant Cell Item for your Nuclear Reactor
- */
- public static Item constructCoolantCellItem(String aUnlocalized, String aEnglish, int aMaxStore) {
- try {
- return new ItemCoolantCellIC(aUnlocalized, aEnglish, aMaxStore);
- } catch (Throwable e) {
- /* Do nothing */
- }
- try {
- return new ItemCoolantCell(aUnlocalized, aEnglish, aMaxStore);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new GTGenericItem(aUnlocalized, aEnglish, "Doesn't work as intended, this is a Bug");
- }
-
- /**
- * Creates a new Energy Armor Item
- */
- public static Item constructElectricArmorItem(String aUnlocalized, String aEnglish, int aCharge, int aTransfer,
- int aTier, int aDamageEnergyCost, int aSpecials, double aArmorAbsorbtionPercentage, boolean aChargeProvider,
- int aType, int aArmorIndex) {
- try {
- return (Item) Class.forName("gregtechmod.api.items.GT_EnergyArmorIC_Item")
- .getConstructors()[0].newInstance(
- aUnlocalized,
- aEnglish,
- aCharge,
- aTransfer,
- aTier,
- aDamageEnergyCost,
- aSpecials,
- aArmorAbsorbtionPercentage,
- aChargeProvider,
- aType,
- aArmorIndex);
- } catch (Throwable e) {
- /* Do nothing */
- }
- try {
- return (Item) Class.forName("gregtechmod.api.items.GT_EnergyArmor_Item")
- .getConstructors()[0].newInstance(
- aUnlocalized,
- aEnglish,
- aCharge,
- aTransfer,
- aTier,
- aDamageEnergyCost,
- aSpecials,
- aArmorAbsorbtionPercentage,
- aChargeProvider,
- aType,
- aArmorIndex);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new GTGenericItem(aUnlocalized, aEnglish, "Doesn't work as intended, this is a Bug");
- }
-
- /**
- * Creates a new Energy Battery Item
- */
- public static Item constructElectricEnergyStorageItem(String aUnlocalized, String aEnglish, int aCharge,
- int aTransfer, int aTier, int aEmptyID, int aFullID) {
- try {
- return (Item) Class.forName("gregtechmod.api.items.GT_EnergyStoreIC_Item")
- .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aCharge, aTransfer, aTier, aEmptyID, aFullID);
- } catch (Throwable e) {
- /* Do nothing */
- }
- try {
- return (Item) Class.forName("gregtechmod.api.items.GT_EnergyStore_Item")
- .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aCharge, aTransfer, aTier, aEmptyID, aFullID);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new GTGenericItem(aUnlocalized, aEnglish, "Doesn't work as intended, this is a Bug");
- }
-
- /**
- * Creates a new Hard Hammer Item
- */
- public static ItemTool constructHardHammerItem(String aUnlocalized, String aEnglish, int aMaxDamage,
- int aEntityDamage) {
- try {
- return (ItemTool) Class.forName("gregtechmod.api.items.GT_HardHammer_Item")
- .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new ItemTool(
- aUnlocalized,
- aEnglish,
- "Doesn't work as intended, this is a Bug",
- aMaxDamage,
- aEntityDamage,
- false);
- }
-
- /**
- * Creates a new Crowbar Item
- */
- public static ItemTool constructCrowbarItem(String aUnlocalized, String aEnglish, int aMaxDamage,
- int aEntityDamage) {
- try {
- return (ItemTool) Class.forName("gregtechmod.api.items.GT_CrowbarRC_Item")
- .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage);
- } catch (Throwable e) {
- /* Do nothing */
- }
- try {
- return (ItemTool) Class.forName("gregtechmod.api.items.GT_Crowbar_Item")
- .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new ItemTool(
- aUnlocalized,
- aEnglish,
- "Doesn't work as intended, this is a Bug",
- aMaxDamage,
- aEntityDamage,
- false);
- }
-
- /**
- * Creates a new Wrench Item
- */
- public static ItemTool constructWrenchItem(String aUnlocalized, String aEnglish, int aMaxDamage, int aEntityDamage,
- int aDisChargedGTID) {
- try {
- return (ItemTool) Class.forName("gregtechmod.api.items.GT_Wrench_Item")
- .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new ItemTool(
- aUnlocalized,
- aEnglish,
- "Doesn't work as intended, this is a Bug",
- aMaxDamage,
- aEntityDamage,
- false);
- }
-
- /**
- * Creates a new electric Screwdriver Item
- */
- public static ItemTool constructElectricScrewdriverItem(String aUnlocalized, String aEnglish, int aMaxDamage,
- int aEntityDamage, int aDisChargedGTID) {
- try {
- return (ItemTool) Class.forName("gregtechmod.api.items.GT_ScrewdriverIC_Item")
- .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new ItemTool(
- aUnlocalized,
- aEnglish,
- "Doesn't work as intended, this is a Bug",
- aMaxDamage,
- aEntityDamage,
- false);
- }
-
- /**
- * Creates a new electric Wrench Item
- */
- public static ItemTool constructElectricWrenchItem(String aUnlocalized, String aEnglish, int aMaxDamage,
- int aEntityDamage, int aDisChargedGTID) {
- try {
- return (ItemTool) Class.forName("gregtechmod.api.items.GT_WrenchIC_Item")
- .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new ItemTool(
- aUnlocalized,
- aEnglish,
- "Doesn't work as intended, this is a Bug",
- aMaxDamage,
- aEntityDamage,
- false);
- }
-
- /**
- * Creates a new electric Saw Item
- */
- public static ItemTool constructElectricSawItem(String aUnlocalized, String aEnglish, int aMaxDamage,
- int aEntityDamage, int aToolQuality, float aToolStrength, int aEnergyConsumptionPerBlockBreak,
- int aDisChargedGTID) {
- try {
- return (ItemTool) Class.forName("gregtechmod.api.items.GT_SawIC_Item")
- .getConstructors()[0].newInstance(
- aUnlocalized,
- aEnglish,
- aMaxDamage,
- aEntityDamage,
- aToolQuality,
- aToolStrength,
- aEnergyConsumptionPerBlockBreak,
- aDisChargedGTID);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new ItemTool(
- aUnlocalized,
- aEnglish,
- "Doesn't work as intended, this is a Bug",
- aMaxDamage,
- aEntityDamage,
- false);
- }
-
- /**
- * Creates a new electric Drill Item
- */
- public static ItemTool constructElectricDrillItem(String aUnlocalized, String aEnglish, int aMaxDamage,
- int aEntityDamage, int aToolQuality, float aToolStrength, int aEnergyConsumptionPerBlockBreak,
- int aDisChargedGTID) {
- try {
- return (ItemTool) Class.forName("gregtechmod.api.items.GT_DrillIC_Item")
- .getConstructors()[0].newInstance(
- aUnlocalized,
- aEnglish,
- aMaxDamage,
- aEntityDamage,
- aToolQuality,
- aToolStrength,
- aEnergyConsumptionPerBlockBreak,
- aDisChargedGTID);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new ItemTool(
- aUnlocalized,
- aEnglish,
- "Doesn't work as intended, this is a Bug",
- aMaxDamage,
- aEntityDamage,
- false);
- }
-
- /**
- * Creates a new electric Soldering Tool
- */
- public static ItemTool constructElectricSolderingToolItem(String aUnlocalized, String aEnglish, int aMaxDamage,
- int aEntityDamage, int aDisChargedGTID) {
- try {
- return (ItemTool) Class.forName("gregtechmod.api.items.GT_SolderingToolIC_Item")
- .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aEntityDamage, aDisChargedGTID);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new ItemTool(
- aUnlocalized,
- aEnglish,
- "Doesn't work as intended, this is a Bug",
- aMaxDamage,
- aEntityDamage,
- false);
- }
-
- /**
- * Creates a new empty electric Tool
- */
- public static ItemTool constructEmptyElectricToolItem(String aUnlocalized, String aEnglish, int aMaxDamage,
- int aChargedGTID) {
- try {
- return (ItemTool) Class.forName("gregtechmod.api.items.GT_EmptyToolIC_Item")
- .getConstructors()[0].newInstance(aUnlocalized, aEnglish, aMaxDamage, aChargedGTID);
- } catch (Throwable e) {
- /* Do nothing */
- }
- return new ItemTool(aUnlocalized, aEnglish, "Doesn't work as intended, this is a Bug", aMaxDamage, 0, false);
- }
-
- /**
* Provides a new BaseMetaTileEntity. Because some interfaces are not always loaded (Buildcraft, Universal
* Electricity) we have to use invocation at the constructor of the BaseMetaTileEntity.
*/