mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-22 21:09:49 +00:00
killed modularity, updated IC2 api
This commit is contained in:
1 parent
370534cd1e
commit
12f51ac23a
141 files changed
+1214
-1914
No files matched your search
Binary file not shown.
@@ -18,12 +18,18 @@ import cpw.mods.fml.relauncher.SideOnly;
|
||||
* Any crop extending this can be registered using registerCrop to be added into the game.
|
||||
*/
|
||||
public abstract class CropCard {
|
||||
public CropCard() {
|
||||
modId = getModId(); // initialize mod id while we should be in the real owner's init event
|
||||
}
|
||||
|
||||
/**
|
||||
* Plant name for identifying this crop within your mod.
|
||||
*
|
||||
* The name has to be unique within the mod and is used for saving.
|
||||
* By default this name will be also used to determine displayKey() and registerSprites().
|
||||
*
|
||||
* @note changing name or owner will cause existing crops in users' worlds to disappear.
|
||||
*
|
||||
* @return Plant name
|
||||
*/
|
||||
public abstract String name();
|
||||
@@ -33,28 +39,25 @@ public abstract class CropCard {
|
||||
*
|
||||
* It's recommended to hard code this to your mod id.
|
||||
*
|
||||
* @note changing name or owner will cause existing crops in users' worlds to disappear.
|
||||
*
|
||||
* @return Mod id.
|
||||
*/
|
||||
public String owner() {
|
||||
ModContainer modContainer = Loader.instance().activeModContainer();
|
||||
|
||||
if (modContainer != null) {
|
||||
return modContainer.getModId();
|
||||
} else {
|
||||
// this is bad if you are not actually IC2
|
||||
assert false;
|
||||
|
||||
return "IC2";
|
||||
}
|
||||
return modId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Translation key for display to the player.
|
||||
*
|
||||
* It's highly recommended to specify a valid key from your language file here, e.g. add
|
||||
* "yourmod.crop.yourCropName = Your crop's name" to the language file, override name() to
|
||||
* return "yourCropName" and override displayName() to return "yourmod.crop."+name().
|
||||
*
|
||||
* @return Unlocalized name.
|
||||
*/
|
||||
public String displayName() {
|
||||
return "ic2.crop."+name();
|
||||
return name(); // return the raw name for backwards compatibility
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -63,7 +66,7 @@ public abstract class CropCard {
|
||||
* @return Your name
|
||||
*/
|
||||
public String discoveredBy() {
|
||||
return "IC2 Team";
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -97,7 +100,7 @@ public abstract class CropCard {
|
||||
* @param crop reference to ICropTile
|
||||
* @return roots lengt use in isBlockBelow
|
||||
*/
|
||||
public int getrootslength(ICropTile crop){
|
||||
public int getrootslength(ICropTile crop) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -144,13 +147,17 @@ public abstract class CropCard {
|
||||
* Instantiate your Icons here.
|
||||
*
|
||||
* This method will get called by IC2, don't call it yourself.
|
||||
*
|
||||
* It's highly recommended to use your own assert domain here, e.g. yourmod:crop/* instead of
|
||||
* ic2:crop/*, which will then read assets/yourmod/textures/blocks/crop/*.png.
|
||||
*/
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerSprites(IIconRegister iconRegister) {
|
||||
textures = new IIcon[maxSize()];
|
||||
|
||||
for (int i = 1; i <= textures.length; i++) {
|
||||
textures[i - 1] = iconRegister.registerIcon("ic2:crop/"+name()+"."+i);
|
||||
// ic2:crop/blockCrop.NAME.n is the legacy name for backwards compatiblity
|
||||
textures[i - 1] = iconRegister.registerIcon("ic2:crop/blockCrop."+name()+"."+i);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -406,6 +413,21 @@ public abstract class CropCard {
|
||||
return Crops.instance.getIdFor(this);
|
||||
}
|
||||
|
||||
private static String getModId() {
|
||||
ModContainer modContainer = Loader.instance().activeModContainer();
|
||||
|
||||
if (modContainer != null) {
|
||||
return modContainer.getModId();
|
||||
} else {
|
||||
// this is bad if you are not actually IC2
|
||||
assert false;
|
||||
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
protected IIcon textures[];
|
||||
|
||||
private final String modId; // TODO: make owner abstract, remove modId auto detection
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,56 @@
|
||||
package ic2.api.item;
|
||||
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
/**
|
||||
* ICustomDamageItem allows items to have custom damage handling without the massive overhead of
|
||||
* Item.getDamage() / Item.setDamage(), which turn ItemStack.getItemDamage into virtual calls.
|
||||
*
|
||||
* The custom damage value is typically stored in the item stacks nbt data.
|
||||
*
|
||||
* If an Item implements ICusomDamageItem, the normal ItemStack damage won't be changed by IC2.
|
||||
* It's up to the implementer to potentially manipulate it for suitable visual effect on the
|
||||
* rendered damage bar or to provide a suitable item renderer.
|
||||
*
|
||||
* Item.isDamageable() still applies.
|
||||
*
|
||||
* @author Player
|
||||
*/
|
||||
public interface ICustomDamageItem {
|
||||
/**
|
||||
* Retrieve the custom damage value for the supplied item stack.
|
||||
*
|
||||
* @param stack ItemStack to be queried.
|
||||
* @return Custom damage value.
|
||||
*/
|
||||
int getCustomDamage(ItemStack stack);
|
||||
|
||||
/**
|
||||
* Retrieve the maximum custom damage value for the supplied item stack.
|
||||
* @param stack ItemStack to be queried.
|
||||
* @return Custom damage value limit.
|
||||
*/
|
||||
int getMaxCustomDamage(ItemStack stack);
|
||||
|
||||
/**
|
||||
* Set the custom damage value for the supplied item stack.
|
||||
*
|
||||
* @param stack ItemStack to be manipulated.
|
||||
* @param damage New damage value.
|
||||
*/
|
||||
void setCustomDamage(ItemStack stack, int damage);
|
||||
|
||||
/**
|
||||
* Increase the custom damage value for the supplied item stack.
|
||||
*
|
||||
* It's up to the implementation to not apply any damage, e.g. based on some randomness or
|
||||
* properties of src.
|
||||
*
|
||||
* @param stack ItemStack to be manipulated.
|
||||
* @param damage Extra damage to be applied.
|
||||
* @param src Entity damaging the item, may be null.
|
||||
* @return true if damage was applied.
|
||||
*/
|
||||
boolean applyCustomDamage(ItemStack stack, int damage, EntityLivingBase src);
|
||||
}
|
||||
Binary file not shown.
@@ -1,15 +1,16 @@
|
||||
package ic2.api.item;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
|
||||
public interface IKineticWindRotor {
|
||||
public int getDiameter();
|
||||
int getDiameter(ItemStack stack);
|
||||
|
||||
public ResourceLocation getRotorRenderTexture();
|
||||
ResourceLocation getRotorRenderTexture(ItemStack stack);
|
||||
|
||||
public float getefficiency();
|
||||
float getEfficiency(ItemStack stack);
|
||||
|
||||
int getminWindStrength();
|
||||
int getMinWindStrength(ItemStack stack);
|
||||
|
||||
int getmaxWindStrength();
|
||||
int getMaxWindStrength(ItemStack stack);
|
||||
}
|
||||
@@ -7,26 +7,26 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
/**
|
||||
* Recipe manager interface for basic machines.
|
||||
*
|
||||
*
|
||||
* @author RichardG, Player
|
||||
*/
|
||||
public interface IMachineRecipeManager {
|
||||
public interface IMachineRecipeManager { // TODO: merge with IMachineRecipeManagerExt
|
||||
/**
|
||||
* Adds a recipe to the machine.
|
||||
*
|
||||
*
|
||||
* @param input Recipe input
|
||||
* @param metadata meta data for additional recipe properties, may be null
|
||||
* @param outputs Recipe outputs, zero or more depending on the machine
|
||||
*
|
||||
*
|
||||
* For the thermal centrifuge @param metadata meta data {"minHeat": 1-xxx}
|
||||
* For the ore washing plant @param metadata meta data {"amount": 1-8000}
|
||||
*
|
||||
*
|
||||
*/
|
||||
public void addRecipe(IRecipeInput input, NBTTagCompound metadata, ItemStack... outputs);
|
||||
|
||||
/**
|
||||
* Gets the recipe output for the given input.
|
||||
*
|
||||
*
|
||||
* @param input Recipe input
|
||||
* @param adjustInput modify the input according to the recipe's requirements
|
||||
* @return Recipe output, or null if none
|
||||
@@ -35,10 +35,10 @@ public interface IMachineRecipeManager {
|
||||
|
||||
/**
|
||||
* Gets a list of recipes.
|
||||
*
|
||||
*
|
||||
* You're a mad evil scientist if you ever modify this.
|
||||
*
|
||||
*
|
||||
* @return List of recipes
|
||||
*/
|
||||
public Map<IRecipeInput, RecipeOutput> getRecipes();
|
||||
public Map<IRecipeInput, RecipeOutput> getRecipes(); // TODO: Change to iterable/collection/list
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
package ic2.api.recipe;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
public interface IMachineRecipeManagerExt extends IMachineRecipeManager {
|
||||
/**
|
||||
* Adds a recipe to the machine.
|
||||
*
|
||||
* @note Overwrite is only as reliable as IRecipeInput.getInputs().
|
||||
*
|
||||
* @param input Recipe input
|
||||
* @param metadata Meta data for additional recipe properties, may be null.
|
||||
* @param overwrite Replace an existing recipe, not recommended, may be ignored.
|
||||
* @param outputs Recipe outputs, zero or more depending on the machine.
|
||||
* @return true on success, false otherwise, e.g. on conflicts.
|
||||
*
|
||||
* For the thermal centrifuge @param metadata meta data {"minHeat": 1-xxx}
|
||||
* For the ore washing plant @param metadata meta data {"amount": 1-8000}
|
||||
*/
|
||||
public boolean addRecipe(IRecipeInput input, NBTTagCompound metadata, boolean overwrite, ItemStack... outputs);
|
||||
}
|
||||
Binary file not shown.
@@ -21,7 +21,8 @@ public class RecipeInputItemStack implements IRecipeInput {
|
||||
|
||||
@Override
|
||||
public boolean matches(ItemStack subject) {
|
||||
return subject.getItem() == input.getItem() && (subject.getItemDamage() == input.getItemDamage() || input.getItemDamage() == OreDictionary.WILDCARD_VALUE);
|
||||
return subject.getItem() == input.getItem() &&
|
||||
(subject.getItemDamage() == input.getItemDamage() || input.getItemDamage() == OreDictionary.WILDCARD_VALUE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Binary file not shown.
@@ -1,8 +1,10 @@
|
||||
package ic2.api.recipe;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
@@ -24,14 +26,19 @@ public class RecipeInputOreDict implements IRecipeInput {
|
||||
|
||||
@Override
|
||||
public boolean matches(ItemStack subject) {
|
||||
List<ItemStack> inputs = OreDictionary.getOres(input);
|
||||
List<ItemStack> inputs = getOres();
|
||||
boolean useOreStackMeta = (meta == null);
|
||||
Item subjectItem = subject.getItem();
|
||||
int subjectMeta = subject.getItemDamage();
|
||||
|
||||
for (ItemStack input1 : inputs) {
|
||||
if (input1.getItem() == null) continue; // ignore invalid
|
||||
int metaRequired = meta == null ? input1.getItemDamage() : meta;
|
||||
for (ItemStack oreStack : inputs) {
|
||||
Item oreItem = oreStack.getItem();
|
||||
if (oreItem == null) continue; // ignore invalid
|
||||
|
||||
if (subject.getItem() == input1.getItem() &&
|
||||
(subject.getItemDamage() == metaRequired || metaRequired == OreDictionary.WILDCARD_VALUE)) {
|
||||
int metaRequired = useOreStackMeta ? oreStack.getItemDamage() : meta;
|
||||
|
||||
if (subjectItem == oreItem &&
|
||||
(subjectMeta == metaRequired || metaRequired == OreDictionary.WILDCARD_VALUE)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -46,14 +53,27 @@ public class RecipeInputOreDict implements IRecipeInput {
|
||||
|
||||
@Override
|
||||
public List<ItemStack> getInputs() {
|
||||
List<ItemStack> ores = OreDictionary.getOres(input);
|
||||
List<ItemStack> ores = getOres();
|
||||
|
||||
// check if we have to filter the list first
|
||||
boolean hasInvalidEntries = false;
|
||||
|
||||
for (ItemStack stack : ores) {
|
||||
if (stack.getItem() == null) {
|
||||
hasInvalidEntries = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!hasInvalidEntries) return ores;
|
||||
|
||||
List<ItemStack> ret = new ArrayList<ItemStack>(ores.size());
|
||||
|
||||
for (ItemStack stack : ores) {
|
||||
if (stack.getItem() != null) ret.add(stack); // ignore invalid
|
||||
}
|
||||
|
||||
return ret;
|
||||
return Collections.unmodifiableList(ret);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -65,7 +85,20 @@ public class RecipeInputOreDict implements IRecipeInput {
|
||||
}
|
||||
}
|
||||
|
||||
private List<ItemStack> getOres() {
|
||||
if (ores != null) return ores;
|
||||
|
||||
// cache the ore list by making use of the fact that forge always uses the same list,
|
||||
// unless it's EMPTY_LIST, which should never happen.
|
||||
List<ItemStack> ret = OreDictionary.getOres(input);
|
||||
|
||||
if (ret != OreDictionary.EMPTY_LIST) ores = ret;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public final String input;
|
||||
public final int amount;
|
||||
public final Integer meta;
|
||||
private List<ItemStack> ores;
|
||||
}
|
||||
Binary file not shown.
@@ -1,6 +1,7 @@
|
||||
package ic2.api.recipe;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -18,6 +19,31 @@ public final class RecipeOutput {
|
||||
this(metadata1, Arrays.asList(items1));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof RecipeOutput) {
|
||||
RecipeOutput ro = (RecipeOutput) obj;
|
||||
|
||||
if (items.size() == ro.items.size() &&
|
||||
(metadata == null && ro.metadata == null || metadata != null && ro.metadata != null) &&
|
||||
metadata.equals(ro.metadata)) {
|
||||
Iterator<ItemStack> itA = items.iterator();
|
||||
Iterator<ItemStack> itB = ro.items.iterator();
|
||||
|
||||
while (itA.hasNext() && itB.hasNext()) {
|
||||
ItemStack stackA = itA.next();
|
||||
ItemStack stackB = itB.next();
|
||||
|
||||
if (ItemStack.areItemStacksEqual(stackA, stackB)) return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ROutput<"+items+","+metadata+">";
|
||||
|
||||
+106
-107
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2;
|
||||
package tombenpotter.emt;
|
||||
|
||||
import ic2.api.item.IC2Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -19,17 +19,16 @@ import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.api.research.ResearchCategories;
|
||||
import thaumcraft.api.research.ResearchItem;
|
||||
import thaumcraft.api.research.ResearchPage;
|
||||
import tombenpotter.emt.common.modules.base.blocks.BaseBlockRegistry;
|
||||
import tombenpotter.emt.common.modules.base.items.BaseItemRegistry;
|
||||
import tombenpotter.emt.common.modules.ic2.blocks.IC2BlockRegistry;
|
||||
import tombenpotter.emt.common.modules.ic2.items.IC2ItemRegistry;
|
||||
import tombenpotter.emt.common.RecipeRegistry;
|
||||
import tombenpotter.emt.common.blocks.BlockRegistry;
|
||||
import tombenpotter.emt.common.items.ItemRegistry;
|
||||
import tombenpotter.emt.common.util.ConfigHandler;
|
||||
import tombenpotter.emt.common.util.EMTResearchItem;
|
||||
import tombenpotter.emt.common.util.ResearchAspects;
|
||||
|
||||
public class IC2Research {
|
||||
public class EMTResearch {
|
||||
|
||||
public static void addResearchTab() {
|
||||
public static void addResearchTab(){
|
||||
ResourceLocation background = new ResourceLocation("thaumcraft", "textures/gui/gui_researchback.png");
|
||||
ResearchCategories.registerCategory("EMT", new ResourceLocation("electromagictools:textures/misc/emt.png"), background);
|
||||
}
|
||||
@@ -45,57 +44,57 @@ public class IC2Research {
|
||||
research.setPages(new ResearchPage(text));
|
||||
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Diamond Chainsaw", "EMT", new AspectList(), 5, -6, 0, new ItemStack(IC2ItemRegistry.diamondChainsaw)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.diamondChainsaw));
|
||||
research = new EMTResearchItem("Diamond Chainsaw", "EMT", new AspectList(), 5, -6, 0, new ItemStack(ItemRegistry.diamondChainsaw)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.diamondChainsaw));
|
||||
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Thaumium Plate", "EMT", new AspectList(), 6, -6, 0, new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.thaumiumPlate));
|
||||
research = new EMTResearchItem("Thaumium Plate", "EMT", new AspectList(), 6, -6, 0, new ItemStack(ItemRegistry.itemEMTItems, 1, 5)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.thaumiumPlate));
|
||||
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Macerating Native Ore Clusters", "EMT", new AspectList(), 5, -7, 0, IC2Items.getItem("smallGoldDust")).setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text));
|
||||
|
||||
text = "1";
|
||||
research = new EMTResearchItem("The Legend", "EMT", new AspectList(), 5, -5, 0, new ItemStack(IC2ItemRegistry.taintedThorHammer)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research = new EMTResearchItem("The Legend", "EMT", new AspectList(), 5, -5, 0, new ItemStack(ItemRegistry.taintedThorHammer)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text));
|
||||
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Lightning Summoner", "EMT", new AspectList(), 6, -5, 0, new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 6)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research = new EMTResearchItem("Lightning Summoner", "EMT", new AspectList(), 6, -5, 0, new ItemStack(ItemRegistry.itemEMTItems, 1, 6)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text));
|
||||
|
||||
text = "1";
|
||||
research = new EMTResearchItem("The One Ring", "EMT", new AspectList(), 6, -7, 0, new ItemStack(BaseItemRegistry.baseBaubles)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research = new EMTResearchItem("The One Ring", "EMT", new AspectList(), 6, -7, 0, new ItemStack(ItemRegistry.baseBaubles)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text));
|
||||
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Feather Wings", "EMT", new AspectList(), 0, 2, 0, new ItemStack(IC2ItemRegistry.featherWing)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.rubberBall), new ResearchPage(IC2RecipeRegistry.ductTape), new ResearchPage(IC2RecipeRegistry.featherMesh), new ResearchPage(IC2RecipeRegistry.cardboard), new ResearchPage(IC2RecipeRegistry.featherWing), new ResearchPage(IC2RecipeRegistry.featherWings));
|
||||
research = new EMTResearchItem("Feather Wings", "EMT", new AspectList(), 0, 2, 0, new ItemStack(ItemRegistry.featherWing)).setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.rubberBall), new ResearchPage(RecipeRegistry.ductTape), new ResearchPage(RecipeRegistry.featherMesh), new ResearchPage(RecipeRegistry.cardboard), new ResearchPage(RecipeRegistry.featherWing), new ResearchPage(RecipeRegistry.featherWings));
|
||||
|
||||
/** Research that can be disabled **/
|
||||
if (ConfigHandler.thaumiumDrillResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Thaumium Drill", "EMT", ResearchAspects.thaumiumDrillResearch, -1, -2, 1, new ItemStack(IC2ItemRegistry.thaumiumDrill)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.thaumiumDrill));
|
||||
research = new EMTResearchItem("Thaumium Drill", "EMT", ResearchAspects.thaumiumDrillResearch, -1, -2, 1, new ItemStack(ItemRegistry.thaumiumDrill)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.thaumiumDrill));
|
||||
}
|
||||
|
||||
if (ConfigHandler.thaumiumChainsawResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Thaumium Chainsaw", "EMT", ResearchAspects.thaumiumChainsawResearch, -2, -2, 1, new ItemStack(IC2ItemRegistry.thaumiumChainsaw)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.thaumiumChainsaw));
|
||||
research = new EMTResearchItem("Thaumium Chainsaw", "EMT", ResearchAspects.thaumiumChainsawResearch, -2, -2, 1, new ItemStack(ItemRegistry.thaumiumChainsaw)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.thaumiumChainsaw));
|
||||
}
|
||||
|
||||
if (ConfigHandler.electricGooglesResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Electric Goggles", "EMT", ResearchAspects.electricGogglesResearch, 1, -2, 1, new ItemStack(IC2ItemRegistry.electricGoggles)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.electricGoggles));
|
||||
research = new EMTResearchItem("Electric Goggles", "EMT", ResearchAspects.electricGogglesResearch, 1, -2, 1, new ItemStack(ItemRegistry.electricGoggles)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.electricGoggles));
|
||||
}
|
||||
|
||||
if (ConfigHandler.electricGooglesResearch == false) {
|
||||
if (ConfigHandler.nanoGooglesResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Nanosuit Goggles of Revealing", "EMT", ResearchAspects.thaumicNanoHelmet, 2, -2, 2, new ItemStack(IC2ItemRegistry.nanoThaumicHelmet)).setParents("Electric Goggles").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.thaumicNanoHelmet));
|
||||
research = new EMTResearchItem("Nanosuit Goggles of Revealing", "EMT", ResearchAspects.thaumicNanoHelmet, 2, -2, 2, new ItemStack(ItemRegistry.nanoThaumicHelmet)).setParents("Electric Goggles").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.thaumicNanoHelmet));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,167 +102,167 @@ public class IC2Research {
|
||||
if (ConfigHandler.nanoGooglesResearch == false) {
|
||||
if (ConfigHandler.quantumGooglesResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Quantum Goggles of Revealing", "EMT", ResearchAspects.thaumicQuantumHelmet, 3, -2, 3, new ItemStack(IC2ItemRegistry.quantumThaumicHelmet)).setParents("Nanosuit Goggles of Revealing").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.thaumicQuantumHelmet));
|
||||
research = new EMTResearchItem("Quantum Goggles of Revealing", "EMT", ResearchAspects.thaumicQuantumHelmet, 3, -2, 3, new ItemStack(ItemRegistry.quantumThaumicHelmet)).setParents("Nanosuit Goggles of Revealing").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.thaumicQuantumHelmet));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.ironOmnitoolResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Iron Omnitool", "EMT", new AspectList(), -2, 0, 0, new ItemStack(IC2ItemRegistry.ironOmnitool)).setParents("Electric Magic Tools").setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.ironOmnitool));
|
||||
research = new EMTResearchItem("Iron Omnitool", "EMT", new AspectList(), -2, 0, 0, new ItemStack(ItemRegistry.ironOmnitool)).setParents("Electric Magic Tools").setRound().setAutoUnlock().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.ironOmnitool));
|
||||
}
|
||||
|
||||
if (ConfigHandler.ironOmnitoolResearch == false) {
|
||||
if (ConfigHandler.diamondOmnitoolResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Diamond Omnitool", "EMT", ResearchAspects.diamondOmnitoolResearch, -4, 0, 1, new ItemStack(IC2ItemRegistry.diamondOmnitool)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.diamondOmnitool), new ResearchPage(IC2RecipeRegistry.ironOmnitoolToDiamond));
|
||||
research = new EMTResearchItem("Diamond Omnitool", "EMT", ResearchAspects.diamondOmnitoolResearch, -4, 0, 1, new ItemStack(ItemRegistry.diamondOmnitool)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.diamondOmnitool), new ResearchPage(RecipeRegistry.ironOmnitoolToDiamond));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.thaumiumDrillResearch == false && ConfigHandler.thaumiumChainsawResearch == false) {
|
||||
if (ConfigHandler.thaumiumOmnitoolResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Thaumium Omnitool", "EMT", ResearchAspects.thaumiumOmnitoolResearch, -6, 0, 2, new ItemStack(IC2ItemRegistry.thaumiumOmnitool)).setParentsHidden("Thaumium Drill", "Thaumium Chainsaw").setParents("Diamond Omnitool").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.thaumiumOmnitool), new ResearchPage(IC2RecipeRegistry.diamondOmnitoolToThaumium));
|
||||
research = new EMTResearchItem("Thaumium Omnitool", "EMT", ResearchAspects.thaumiumOmnitoolResearch, -6, 0, 2, new ItemStack(ItemRegistry.thaumiumOmnitool)).setParentsHidden("Thaumium Drill", "Thaumium Chainsaw").setParents("Diamond Omnitool").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.thaumiumOmnitool), new ResearchPage(RecipeRegistry.diamondOmnitoolToThaumium));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.explosionFocusResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Explosion Focus", "EMT", ResearchAspects.laserFocusResearch, 2, 3, 2, new ItemStack(IC2ItemRegistry.explosionFocus)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.explosionFocus));
|
||||
research = new EMTResearchItem("Explosion Focus", "EMT", ResearchAspects.laserFocusResearch, 2, 3, 2, new ItemStack(ItemRegistry.explosionFocus)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.explosionFocus));
|
||||
}
|
||||
|
||||
if (ConfigHandler.christmasFocusResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Kris-tmas Focus", "EMT", ResearchAspects.christmasFocusResearch, 3, 3, 1, new ItemStack(IC2ItemRegistry.christmasFocus)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.christmasFocus));
|
||||
research = new EMTResearchItem("Kris-tmas Focus", "EMT", ResearchAspects.christmasFocusResearch, 3, 3, 1, new ItemStack(ItemRegistry.christmasFocus)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.christmasFocus));
|
||||
}
|
||||
|
||||
if (ConfigHandler.shieldFocusResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Shield Focus", "EMT", ResearchAspects.shieldFocusResearch, 4, 3, 2, new ItemStack(IC2ItemRegistry.shieldFocus)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.shieldFocus));
|
||||
research = new EMTResearchItem("Shield Focus", "EMT", ResearchAspects.shieldFocusResearch, 4, 3, 2, new ItemStack(ItemRegistry.shieldFocus)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.shieldFocus));
|
||||
}
|
||||
|
||||
if (ConfigHandler.shieldFocusResearch == false) {
|
||||
if (ConfigHandler.shieldBlockResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Shield Block", "EMT", ResearchAspects.shieldBlockResearch, 4, 5, 1, new ItemStack(IC2BlockRegistry.shield)).setSecondary().setParents("Shield Focus").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.shieldBlock));
|
||||
research = new EMTResearchItem("Shield Block", "EMT", ResearchAspects.shieldBlockResearch, 4, 5, 1, new ItemStack(BlockRegistry.shield)).setSecondary().setParents("Shield Focus").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.shieldBlock));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.potentiaGeneratorResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Potentia Generator", "EMT", ResearchAspects.potentiaGeneratorResearch, -2, 3, 3, new ItemStack(IC2BlockRegistry.essentiaGens, 1, 0)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.potentiaGenerator));
|
||||
research = new EMTResearchItem("Potentia Generator", "EMT", ResearchAspects.potentiaGeneratorResearch, -2, 3, 3, new ItemStack(BlockRegistry.essentiaGens, 1, 0)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.potentiaGenerator));
|
||||
}
|
||||
|
||||
if (ConfigHandler.potentiaGeneratorResearch == false) {
|
||||
if (ConfigHandler.ignisGeneratorResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Ignis Generator", "EMT", ResearchAspects.ignisGeneratorResearch, -3, 4, 1, new ItemStack(IC2BlockRegistry.essentiaGens, 1, 1)).setSecondary().setParents("Potentia Generator").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.ignisGenerator));
|
||||
research = new EMTResearchItem("Ignis Generator", "EMT", ResearchAspects.ignisGeneratorResearch, -3, 4, 1, new ItemStack(BlockRegistry.essentiaGens, 1, 1)).setSecondary().setParents("Potentia Generator").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.ignisGenerator));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.potentiaGeneratorResearch == false) {
|
||||
if (ConfigHandler.auramGeneratorResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Auram Generator", "EMT", ResearchAspects.auramGeneratorResearch, -1, 4, 1, new ItemStack(IC2BlockRegistry.essentiaGens, 1, 2)).setSecondary().setParents("Potentia Generator").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.auramGenerator));
|
||||
research = new EMTResearchItem("Auram Generator", "EMT", ResearchAspects.auramGeneratorResearch, -1, 4, 1, new ItemStack(BlockRegistry.essentiaGens, 1, 2)).setSecondary().setParents("Potentia Generator").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.auramGenerator));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.potentiaGeneratorResearch == false) {
|
||||
if (ConfigHandler.arborGeneratorResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Arbor Generator", "EMT", ResearchAspects.arborGeneratorResearch, -2, 5, 1, new ItemStack(IC2BlockRegistry.essentiaGens, 1, 3)).setSecondary().setParents("Potentia Generator").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.arborGenerator));
|
||||
research = new EMTResearchItem("Arbor Generator", "EMT", ResearchAspects.arborGeneratorResearch, -2, 5, 1, new ItemStack(BlockRegistry.essentiaGens, 1, 3)).setSecondary().setParents("Potentia Generator").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.arborGenerator));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.potentiaGeneratorResearch == false) {
|
||||
if (ConfigHandler.aerGeneratorResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Aer Generator", "EMT", ResearchAspects.aerGenerator, -2, 6, 1, new ItemStack(IC2BlockRegistry.essentiaGens, 1, 4)).setSecondary().setParents("Potentia Generator").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.aerGenerator));
|
||||
research = new EMTResearchItem("Aer Generator", "EMT", ResearchAspects.aerGenerator, -2, 6, 1, new ItemStack(BlockRegistry.essentiaGens, 1, 4)).setSecondary().setParents("Potentia Generator").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.aerGenerator));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.potentiaGeneratorResearch == false) {
|
||||
if (ConfigHandler.wandChargingSationResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Industrial Wand Charging Station", "EMT", ResearchAspects.wandCharger, -4, 2, 3, new ItemStack(IC2BlockRegistry.emtMachines, 1, 0)).setParents("Potentia Generator").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.wandRecharger));
|
||||
research = new EMTResearchItem("Industrial Wand Charging Station", "EMT", ResearchAspects.wandCharger, -4, 2, 3, new ItemStack(BlockRegistry.emtMachines, 1, 0)).setParents("Potentia Generator").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.wandRecharger));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.thaumiumChainsawResearch == false) {
|
||||
if (ConfigHandler.streamChainsawResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Chainsaw of the Stream", "EMT", ResearchAspects.streamChainsawResearch, -3, -4, 3, new ItemStack(IC2ItemRegistry.streamChainsaw)).setParents("Thaumium Chainsaw").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.streamChainsaw));
|
||||
research = new EMTResearchItem("Chainsaw of the Stream", "EMT", ResearchAspects.streamChainsawResearch, -3, -4, 3, new ItemStack(ItemRegistry.streamChainsaw)).setParents("Thaumium Chainsaw").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.streamChainsaw));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.thaumiumDrillResearch == false) {
|
||||
if (ConfigHandler.rockbreakerDrillResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Drill of the Rockbreaker", "EMT", ResearchAspects.rockbreakerDrillResearch, 0, -4, 3, new ItemStack(IC2ItemRegistry.rockbreakerDrill)).setParents("Thaumium Drill").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.rockbreakerDrill));
|
||||
research = new EMTResearchItem("Drill of the Rockbreaker", "EMT", ResearchAspects.rockbreakerDrillResearch, 0, -4, 3, new ItemStack(ItemRegistry.rockbreakerDrill)).setParents("Thaumium Drill").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.rockbreakerDrill));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.tinyUraniumResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Tiny Uranium", "EMT", ResearchAspects.tinyUraniumResearch, -5, -5, 1, IC2Items.getItem("Uran238")).setSecondary().setParentsHidden("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.tinyUranium));
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.tinyUranium));
|
||||
}
|
||||
|
||||
if (ConfigHandler.thorHammerResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Mjolnir", "EMT", ResearchAspects.thorHammerResearch, -5, 5, 3, new ItemStack(IC2ItemRegistry.thorHammer)).setParentsHidden("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.thorHammer));
|
||||
research = new EMTResearchItem("Mjolnir", "EMT", ResearchAspects.thorHammerResearch, -5, 5, 3, new ItemStack(ItemRegistry.thorHammer)).setParentsHidden("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.thorHammer));
|
||||
}
|
||||
|
||||
if (ConfigHandler.thorHammerResearch == false) {
|
||||
if (ConfigHandler.superchargedThorHammerResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Supercharged Mjolnir", "EMT", ResearchAspects.superchargedThorHammerResearch, -6, 6, 3, new ItemStack(IC2ItemRegistry.electricThorHammer)).setParents("Mjolnir").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.superchargedThorHammer));
|
||||
research = new EMTResearchItem("Supercharged Mjolnir", "EMT", ResearchAspects.superchargedThorHammerResearch, -6, 6, 3, new ItemStack(ItemRegistry.electricThorHammer)).setParents("Mjolnir").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.superchargedThorHammer));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.compressedSolarsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Compressed Solars", "EMT", ResearchAspects.compressedSolars, -4, -5, 2, new ItemStack(IC2BlockRegistry.emtSolars)).setParentsHidden("Potentia Generator").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.compressedSolar), new ResearchPage(IC2RecipeRegistry.doubleCompressedSolar), new ResearchPage(IC2RecipeRegistry.tripleCompressedSolar));
|
||||
research = new EMTResearchItem("Compressed Solars", "EMT", ResearchAspects.compressedSolars, -4, -5, 2, new ItemStack(BlockRegistry.emtSolars)).setParentsHidden("Potentia Generator").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.compressedSolar), new ResearchPage(RecipeRegistry.doubleCompressedSolar), new ResearchPage(RecipeRegistry.tripleCompressedSolar));
|
||||
}
|
||||
|
||||
if (ConfigHandler.compressedSolarsResearch == false) {
|
||||
if (ConfigHandler.solarHelmetResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Solar Helmet of Revealing", "EMT", ResearchAspects.solarHelmetRevealing, -2, -5, 1, new ItemStack(IC2ItemRegistry.solarHelmetRevealing)).setSecondary().setParents("Compressed Solars").setParentsHidden("Quantum Goggles of Revealing").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.solarHelmetRevealing));
|
||||
research = new EMTResearchItem("Solar Helmet of Revealing", "EMT", ResearchAspects.solarHelmetRevealing, -2, -5, 1, new ItemStack(ItemRegistry.solarHelmetRevealing)).setSecondary().setParents("Compressed Solars").setParentsHidden("Quantum Goggles of Revealing").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.solarHelmetRevealing));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.electricBootsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Electric Boots of the Traveller", "EMT", ResearchAspects.electricBootsTravel, 2, 0, 1, new ItemStack(IC2ItemRegistry.electricBootsTraveller)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.electricBootsTravel));
|
||||
research = new EMTResearchItem("Electric Boots of the Traveller", "EMT", ResearchAspects.electricBootsTravel, 2, 0, 1, new ItemStack(ItemRegistry.electricBootsTraveller)).setSecondary().setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.electricBootsTravel));
|
||||
}
|
||||
|
||||
if (ConfigHandler.electricBootsResearch == false) {
|
||||
if (ConfigHandler.nanoBootsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Nano Boots of the Traveller", "EMT", ResearchAspects.nanoBootsTravel, 4, 0, 2, new ItemStack(IC2ItemRegistry.nanoBootsTraveller)).setParents("Electric Boots of the Traveller").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.nanoBootsTravel));
|
||||
research = new EMTResearchItem("Nano Boots of the Traveller", "EMT", ResearchAspects.nanoBootsTravel, 4, 0, 2, new ItemStack(ItemRegistry.nanoBootsTraveller)).setParents("Electric Boots of the Traveller").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.nanoBootsTravel));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -271,130 +270,130 @@ public class IC2Research {
|
||||
if (ConfigHandler.nanoBootsResearch == false) {
|
||||
if (ConfigHandler.quantumBootsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Quantum Boots of the Traveller", "EMT", ResearchAspects.quantumBootsTravel, 6, 0, 3, new ItemStack(IC2ItemRegistry.quantumBootsTraveller)).setParents("Nano Boots of the Traveller").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.quantumBootsTravel));
|
||||
research = new EMTResearchItem("Quantum Boots of the Traveller", "EMT", ResearchAspects.quantumBootsTravel, 6, 0, 3, new ItemStack(ItemRegistry.quantumBootsTraveller)).setParents("Nano Boots of the Traveller").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.quantumBootsTravel));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.electricScribingToolsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Electric Scribing Tools", "EMT", ResearchAspects.electricScribingTools, -6, -5, 1, new ItemStack(IC2ItemRegistry.electricScribingTools)).setSecondary().setParentsHidden("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.electricScribingTools));
|
||||
research = new EMTResearchItem("Electric Scribing Tools", "EMT", ResearchAspects.electricScribingTools, -6, -5, 1, new ItemStack(ItemRegistry.electricScribingTools)).setSecondary().setParentsHidden("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.electricScribingTools));
|
||||
}
|
||||
|
||||
if (ConfigHandler.etherealProcessorResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Etheral Processor", "EMT", ResearchAspects.etherealProcessor, -1, 2, 2, new ItemStack(IC2BlockRegistry.emtMachines, 1, 1)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.etheralProcessor));
|
||||
research = new EMTResearchItem("Etheral Processor", "EMT", ResearchAspects.etherealProcessor, -1, 2, 2, new ItemStack(BlockRegistry.emtMachines, 1, 1)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.etheralProcessor));
|
||||
}
|
||||
|
||||
if (ConfigHandler.compressedSolarsResearch == false) {
|
||||
if (ConfigHandler.waterSolarsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Water Infused Solar Panels", "EMT", ResearchAspects.waterSolars, -7, -7, 1, new ItemStack(IC2BlockRegistry.emtSolars, 1, 3)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.waterSolar), new ResearchPage(IC2RecipeRegistry.doubleWaterSolar), new ResearchPage(IC2RecipeRegistry.tripleWaterSolar));
|
||||
research = new EMTResearchItem("Water Infused Solar Panels", "EMT", ResearchAspects.waterSolars, -7, -7, 1, new ItemStack(BlockRegistry.emtSolars, 1, 3)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.waterSolar), new ResearchPage(RecipeRegistry.doubleWaterSolar), new ResearchPage(RecipeRegistry.tripleWaterSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.compressedSolarsResearch == false) {
|
||||
if (ConfigHandler.darkSolarsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Entropy Infused Solar Panels", "EMT", ResearchAspects.darkSolars, -8, -6, 1, new ItemStack(IC2BlockRegistry.emtSolars, 1, 6)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.darkSolar), new ResearchPage(IC2RecipeRegistry.doubleDarkSolar), new ResearchPage(IC2RecipeRegistry.tripleDarkSolar));
|
||||
research = new EMTResearchItem("Entropy Infused Solar Panels", "EMT", ResearchAspects.darkSolars, -8, -6, 1, new ItemStack(BlockRegistry.emtSolars, 1, 6)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.darkSolar), new ResearchPage(RecipeRegistry.doubleDarkSolar), new ResearchPage(RecipeRegistry.tripleDarkSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.compressedSolarsResearch == false) {
|
||||
if (ConfigHandler.orderSolarsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Order Infused Solar Panels", "EMT", ResearchAspects.orderSolars, -6, -8, 1, new ItemStack(IC2BlockRegistry.emtSolars, 1, 9)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.orderSolar), new ResearchPage(IC2RecipeRegistry.doubleOrderSolar), new ResearchPage(IC2RecipeRegistry.tripleOrderSolar));
|
||||
research = new EMTResearchItem("Order Infused Solar Panels", "EMT", ResearchAspects.orderSolars, -6, -8, 1, new ItemStack(BlockRegistry.emtSolars, 1, 9)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.orderSolar), new ResearchPage(RecipeRegistry.doubleOrderSolar), new ResearchPage(RecipeRegistry.tripleOrderSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.compressedSolarsResearch == false) {
|
||||
if (ConfigHandler.fireSolarsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Fire Infused Solar Panels", "EMT", ResearchAspects.fireSolars, -5, -7, 1, new ItemStack(IC2BlockRegistry.emtSolars, 1, 12)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.fireSolar), new ResearchPage(IC2RecipeRegistry.doubleFireSolar), new ResearchPage(IC2RecipeRegistry.tripleFireSolar));
|
||||
research = new EMTResearchItem("Fire Infused Solar Panels", "EMT", ResearchAspects.fireSolars, -5, -7, 1, new ItemStack(BlockRegistry.emtSolars, 1, 12)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.fireSolar), new ResearchPage(RecipeRegistry.doubleFireSolar), new ResearchPage(RecipeRegistry.tripleFireSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.compressedSolarsResearch == false) {
|
||||
if (ConfigHandler.airSolarsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Air Infused Solar Panels", "EMT", ResearchAspects.airSolars, -4, -6, 1, new ItemStack(IC2BlockRegistry.emtSolars, 1, 15)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.airSolar), new ResearchPage(IC2RecipeRegistry.doubleAirSolar), new ResearchPage(IC2RecipeRegistry.tripleAirSolar));
|
||||
research = new EMTResearchItem("Air Infused Solar Panels", "EMT", ResearchAspects.airSolars, -4, -6, 1, new ItemStack(BlockRegistry.emtSolars, 1, 15)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.airSolar), new ResearchPage(RecipeRegistry.doubleAirSolar), new ResearchPage(RecipeRegistry.tripleAirSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.compressedSolarsResearch == false) {
|
||||
if (ConfigHandler.earthSolarsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Earth Infused Solar Panels", "EMT", ResearchAspects.earthSolars, -6, -7, 1, new ItemStack(IC2BlockRegistry.emtSolars2, 1, 2)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.earthSolar), new ResearchPage(IC2RecipeRegistry.doubleEarthSolar), new ResearchPage(IC2RecipeRegistry.tripleEarthSolar));
|
||||
research = new EMTResearchItem("Earth Infused Solar Panels", "EMT", ResearchAspects.earthSolars, -6, -7, 1, new ItemStack(BlockRegistry.emtSolars2, 1, 2)).setSecondary().setParents("Compressed Solars").registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.earthSolar), new ResearchPage(RecipeRegistry.doubleEarthSolar), new ResearchPage(RecipeRegistry.tripleEarthSolar));
|
||||
}
|
||||
}
|
||||
|
||||
if (ConfigHandler.uuMInfusionResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("UU-Matter Infusion", "EMT", ResearchAspects.uuMInfusion, 5, 5, 3, new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 16)).setParentsHidden("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.charcoalToCoal), new ResearchPage(IC2RecipeRegistry.glowstoneDustToBlock), new ResearchPage(IC2RecipeRegistry.stoneBricksToIronOre), new ResearchPage(IC2RecipeRegistry.arcaneStoneToCopperOre), new ResearchPage(IC2RecipeRegistry.arcaneStoneBricksToTinOre), new ResearchPage(IC2RecipeRegistry.amberBlockToLeadOre), new ResearchPage(IC2RecipeRegistry.amberBricksToUraniumOre), new ResearchPage(IC2RecipeRegistry.shardToResin), new ResearchPage(IC2RecipeRegistry.shardToRedstone), new ResearchPage(IC2RecipeRegistry.shardToLapis), new ResearchPage(IC2RecipeRegistry.ironToGold), new ResearchPage(IC2RecipeRegistry.goldToDiamond), new ResearchPage(IC2RecipeRegistry.diamondToUranium), new ResearchPage(IC2RecipeRegistry.uraniumToIridium));
|
||||
research = new EMTResearchItem("UU-Matter Infusion", "EMT", ResearchAspects.uuMInfusion, 5, 5, 3, new ItemStack(ItemRegistry.itemEMTItems, 1, 16)).setParentsHidden("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.charcoalToCoal), new ResearchPage(RecipeRegistry.glowstoneDustToBlock), new ResearchPage(RecipeRegistry.stoneBricksToIronOre), new ResearchPage(RecipeRegistry.arcaneStoneToCopperOre), new ResearchPage(RecipeRegistry.arcaneStoneBricksToTinOre), new ResearchPage(RecipeRegistry.amberBlockToLeadOre), new ResearchPage(RecipeRegistry.amberBricksToUraniumOre), new ResearchPage(RecipeRegistry.shardToResin), new ResearchPage(RecipeRegistry.shardToRedstone), new ResearchPage(RecipeRegistry.shardToLapis), new ResearchPage(RecipeRegistry.ironToGold), new ResearchPage(RecipeRegistry.goldToDiamond), new ResearchPage(RecipeRegistry.diamondToUranium), new ResearchPage(RecipeRegistry.uraniumToIridium));
|
||||
}
|
||||
|
||||
if (ConfigHandler.portableNodeResarch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Portable Node", "EMT", ResearchAspects.portableNode, 2, 5, 3, new ItemStack(BaseBlockRegistry.portableNode)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.portableNode));
|
||||
research = new EMTResearchItem("Portable Node", "EMT", ResearchAspects.portableNode, 2, 5, 3, new ItemStack(BlockRegistry.portableNode)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.portableNode));
|
||||
}
|
||||
|
||||
if (ConfigHandler.electricHoeGrowthResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Electric Hoe of Growth", "EMT", ResearchAspects.electricHoeGrowth, -1, -4, 2, new ItemStack(IC2ItemRegistry.electricHoeGrowth)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.electricHoeGrowth));
|
||||
research = new EMTResearchItem("Electric Hoe of Growth", "EMT", ResearchAspects.electricHoeGrowth, -1, -4, 2, new ItemStack(ItemRegistry.electricHoeGrowth)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.electricHoeGrowth));
|
||||
}
|
||||
|
||||
if (ConfigHandler.chargeFocusResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Wand Focus: Charging", "EMT", ResearchAspects.chargeFocus, 5, 3, 2, new ItemStack(IC2ItemRegistry.chargeFocus)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.chargeFocus));
|
||||
research = new EMTResearchItem("Wand Focus: Charging", "EMT", ResearchAspects.chargeFocus, 5, 3, 2, new ItemStack(ItemRegistry.chargeFocus)).setParents("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.chargeFocus));
|
||||
}
|
||||
|
||||
if (ConfigHandler.wandChargeFocusResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Wand Focus: Wand Charging", "EMT", ResearchAspects.wandChargeFocus, 7, 3, 3, new ItemStack(IC2ItemRegistry.wandChargeFocus)).setParents("Wand Focus: Charging").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.wandChargeFocus));
|
||||
research = new EMTResearchItem("Wand Focus: Wand Charging", "EMT", ResearchAspects.wandChargeFocus, 7, 3, 3, new ItemStack(ItemRegistry.wandChargeFocus)).setParents("Wand Focus: Charging").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.wandChargeFocus));
|
||||
}
|
||||
|
||||
if (ConfigHandler.inventoryChargingRing == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Inventory Charging Ring", "EMT", ResearchAspects.inventoryChargingRing, 0, -5, 3, new ItemStack(IC2ItemRegistry.emtBauble, 1, 1)).setParentsHidden("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.inventoryChargingRing));
|
||||
research = new EMTResearchItem("Inventory Charging Ring", "EMT", ResearchAspects.inventoryChargingRing, 0, -5, 3, new ItemStack(ItemRegistry.emtBauble, 1, 1)).setParentsHidden("Electric Magic Tools").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.inventoryChargingRing));
|
||||
}
|
||||
|
||||
if (ConfigHandler.armorChargingRing == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Armor Charging Ring", "EMT", ResearchAspects.armorChargingRing, 0, -7, 3, new ItemStack(IC2ItemRegistry.emtBauble, 1, 0)).setSecondary().setParents("Inventory Charging Ring").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.armorChargingRing));
|
||||
research = new EMTResearchItem("Armor Charging Ring", "EMT", ResearchAspects.armorChargingRing, 0, -7, 3, new ItemStack(ItemRegistry.emtBauble, 1, 0)).setSecondary().setParents("Inventory Charging Ring").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.armorChargingRing));
|
||||
}
|
||||
|
||||
if (ConfigHandler.thaumiumWingResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Thaumium Reinforced Wings", "EMT", ResearchAspects.thaumiumWing, 0, 4, 0, new ItemStack(IC2ItemRegistry.thaumiumWing)).setSecondary().setParents("Feather Wings").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.thaumiumWing), new ResearchPage(IC2RecipeRegistry.thaumiumWings));
|
||||
research = new EMTResearchItem("Thaumium Reinforced Wings", "EMT", ResearchAspects.thaumiumWing, 0, 4, 0, new ItemStack(ItemRegistry.thaumiumWing)).setSecondary().setParents("Feather Wings").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.thaumiumWing), new ResearchPage(RecipeRegistry.thaumiumWings));
|
||||
}
|
||||
|
||||
if (ConfigHandler.nanoWingResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Nanosuit Wings", "EMT", ResearchAspects.nanoWing, 0, 6, 2, new ItemStack(IC2ItemRegistry.nanoWing)).setParents("Thaumium Reinforced Wings").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.nanoWings));
|
||||
research = new EMTResearchItem("Nanosuit Wings", "EMT", ResearchAspects.nanoWing, 0, 6, 2, new ItemStack(ItemRegistry.nanoWing)).setParents("Thaumium Reinforced Wings").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.nanoWings));
|
||||
}
|
||||
|
||||
if (ConfigHandler.quantumWingsResearch == false) {
|
||||
text = "1";
|
||||
research = new EMTResearchItem("Quantum Wings", "EMT", ResearchAspects.quantumWing, 0, 8, 3, new ItemStack(IC2ItemRegistry.quantumWing)).setParents("Nanosuit Wings").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(IC2RecipeRegistry.quantumWings));
|
||||
research = new EMTResearchItem("Quantum Wings", "EMT", ResearchAspects.quantumWing, 0, 8, 3, new ItemStack(ItemRegistry.quantumWing)).setParents("Nanosuit Wings").setConcealed().registerResearchItem();
|
||||
research.setPages(new ResearchPage(text), new ResearchPage(RecipeRegistry.quantumWings));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -27,8 +27,8 @@ import net.minecraftforge.common.MinecraftForge;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import tombenpotter.emt.common.commands.CommandOutputs;
|
||||
import tombenpotter.emt.common.modules.ModuleRegistry;
|
||||
import tombenpotter.emt.common.modules.base.entities.BaseEntityRegistry;
|
||||
import tombenpotter.emt.common.Registry;
|
||||
import tombenpotter.emt.common.entities.BaseEntityRegistry;
|
||||
import tombenpotter.emt.common.util.*;
|
||||
import tombenpotter.emt.proxies.CommonProxy;
|
||||
|
||||
@@ -53,7 +53,7 @@ public class ElectroMagicTools {
|
||||
|
||||
ConfigHandler.init(event.getSuggestedConfigurationFile());
|
||||
FMLCommonHandler.instance().bus().register(new EventHandlerEMT());
|
||||
ModuleRegistry.registerModules();
|
||||
Registry.register();
|
||||
EssentiasOutputs.addPrimalOutputs();
|
||||
EssentiasOutputs.addOutputs();
|
||||
|
||||
@@ -83,7 +83,7 @@ public class ElectroMagicTools {
|
||||
public void postInit(FMLPostInitializationEvent event) {
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.postInit.begin"));
|
||||
|
||||
ModuleRegistry.registerLateModules();
|
||||
Registry.registerLate();
|
||||
RegistryHandler.registerIc2PostRegistrys();
|
||||
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.postInit.end"));
|
||||
|
||||
@@ -19,7 +19,7 @@ import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.client.gui.container.ContainerEtheralMacerator;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.TileEntityEtherealMacerator;
|
||||
import tombenpotter.emt.common.tile.TileEntityEtherealMacerator;
|
||||
import tombenpotter.emt.common.util.TextHelper;
|
||||
|
||||
public class GuiEtherealMacerator extends GuiContainer {
|
||||
|
||||
@@ -19,7 +19,7 @@ import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.client.gui.container.ContainerIndustrialWandRecharge;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.TileEntityIndustrialWandRecharge;
|
||||
import tombenpotter.emt.common.tile.TileEntityIndustrialWandRecharge;
|
||||
import tombenpotter.emt.common.util.TextHelper;
|
||||
|
||||
public class GuiIndustrialWandRecharger extends GuiContainer {
|
||||
|
||||
@@ -20,14 +20,14 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.FurnaceRecipes;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import thaumcraft.common.container.SlotOutput;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.TileEntityEtherealMacerator;
|
||||
import tombenpotter.emt.common.tile.TileEntityEtherealMacerator;
|
||||
|
||||
public class ContainerEtheralMacerator extends Container {
|
||||
|
||||
TileEntityEtherealMacerator te;
|
||||
|
||||
public ContainerEtheralMacerator(InventoryPlayer inventory, TileEntity te) {
|
||||
this.te = ((TileEntityEtherealMacerator) te);
|
||||
this.te = ((TileEntityEtherealMacerator)te);
|
||||
addSlotToContainer(new Slot(this.te, 0, 56, 26));
|
||||
addSlotToContainer(new SlotOutput(this.te, 2, 116, 26));
|
||||
addSlotToContainer(new SlotOutput(this.te, 1, 116, 53));
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.FurnaceRecipes;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.TileEntityIndustrialWandRecharge;
|
||||
import tombenpotter.emt.common.tile.TileEntityIndustrialWandRecharge;
|
||||
|
||||
public class ContainerIndustrialWandRecharge extends Container {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import net.minecraft.util.ResourceLocation;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import org.lwjgl.opengl.GL12;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.base.entities.EntityLaser;
|
||||
import tombenpotter.emt.common.entities.EntityLaser;
|
||||
|
||||
public class RenderLaser extends Render {
|
||||
|
||||
|
||||
@@ -0,0 +1,465 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014 Tombenpotter.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the terms of the GNU Public License v3.0
|
||||
* which accompanies this distribution, and is available at http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
* This class was made by Tombenpotter and is distributed as a part of the Electro-Magic Tools mod.
|
||||
* Electro-Magic Tools is a derivative work on Thaumcraft 4 (c) Azanor 2012.
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import ic2.api.item.IC2Items;
|
||||
import ic2.api.recipe.IRecipeInput;
|
||||
import ic2.api.recipe.RecipeInputItemStack;
|
||||
import ic2.api.recipe.Recipes;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import thaumcraft.api.ThaumcraftApi;
|
||||
import thaumcraft.api.crafting.CrucibleRecipe;
|
||||
import thaumcraft.api.crafting.InfusionRecipe;
|
||||
import thaumcraft.api.crafting.ShapedArcaneRecipe;
|
||||
import thaumcraft.api.crafting.ShapelessArcaneRecipe;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.common.blocks.BlockRegistry;
|
||||
import tombenpotter.emt.common.blocks.BlockRegistry;
|
||||
import tombenpotter.emt.common.items.ItemRegistry;
|
||||
import tombenpotter.emt.common.util.ConfigHandler;
|
||||
import tombenpotter.emt.common.util.CraftingAspects;
|
||||
import tombenpotter.emt.common.util.TextHelper;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public class RecipeRegistry {
|
||||
|
||||
public static ItemStack uuMCell = new ItemStack(ItemRegistry.itemEMTItems, 1, 16);
|
||||
|
||||
private static void registerShapedRecipes() {
|
||||
|
||||
/** Crafting Recipes **/
|
||||
ironOmnitool = GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.ironOmnitool), "X", "Z", "Y", 'X', new ItemStack(IC2Items.getItem("chainsaw").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'Y', new ItemStack(IC2Items.getItem("miningDrill").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'Z', IC2Items.getItem("plateiron"));
|
||||
diamondChainsaw = GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.diamondChainsaw), " X ", "XYX", 'X', new ItemStack(Items.diamond), 'Y', new ItemStack(IC2Items.getItem("chainsaw").getItem(), 1, OreDictionary.WILDCARD_VALUE));
|
||||
ductTape = GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.itemEMTItems, 1, 9), "XXX", "YYY", "XXX", 'X', new ItemStack(ItemRegistry.itemEMTItems, 1, 8), 'Y', new ItemStack(Items.paper));
|
||||
featherMesh = GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.itemEMTItems, 1, 7), "XYX", "YXY", "XYX", 'X', new ItemStack(Items.feather), 'Y', new ItemStack(ItemRegistry.itemEMTItems, 1, 9));
|
||||
featherWing = GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.itemEMTItems, 1, 12), "XYZ", "XYZ", "XYZ", 'X', new ItemStack(ItemRegistry.itemEMTItems, 1, 7), 'Y', new ItemStack(ItemRegistry.itemEMTItems, 1, 8), 'Z', new ItemStack(ItemRegistry.itemEMTItems, 1, 11));
|
||||
featherWings = GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.featherWing), "XX", 'X', new ItemStack(ItemRegistry.itemEMTItems, 1, 12));
|
||||
taintedFeathers = GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.itemEMTItems, 1, 14), " X ", "XYX", " X ", 'X', new ItemStack(ConfigItems.itemResource, 1, 12), 'Y', new ItemStack(Items.feather));
|
||||
|
||||
if (!Loader.isModLoaded("gregtech_addon")) {
|
||||
GameRegistry.addShapedRecipe(IC2Items.getItem("diamondDrill"), " Y ", "YXY", 'Y', new ItemStack(Items.diamond), 'X', new ItemStack(IC2Items.getItem("miningDrill").getItem(), 1, OreDictionary.WILDCARD_VALUE));
|
||||
} else {
|
||||
ElectroMagicTools.logger.info(TextHelper.localize("console.EMT.modLoaded.GT"));
|
||||
}
|
||||
|
||||
GameRegistry.addRecipe(IC2Items.getItem("nanoHelmet"), "XYX", "XZX", 'X', IC2Items.getItem("carbonPlate"), 'Y', new ItemStack(IC2Items.getItem("energyCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'Z', new ItemStack(IC2Items.getItem("nightvisionGoggles").getItem(), 1, OreDictionary.WILDCARD_VALUE));
|
||||
GameRegistry.addShapedRecipe(IC2Items.getItem("generator"), "X", "Y", "Z", 'X', new ItemStack(IC2Items.getItem("chargedReBattery").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'Y', IC2Items.getItem("machine"), 'Z', new ItemStack(Blocks.furnace));
|
||||
GameRegistry.addShapedRecipe(IC2Items.getItem("generator"), "X", "Y", "Z", 'X', IC2Items.getItem("reBattery"), 'Y', IC2Items.getItem("machine"), 'Z', new ItemStack(Blocks.furnace));
|
||||
|
||||
/** OreDict Crafting Recipes **/
|
||||
for (int i = 0; i < OreDictionary.getOres("logWood").size(); i++) {
|
||||
cardboard = GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.itemEMTItems, 1, 11), "XXX", "YYY", "XXX", 'X', new ItemStack(Items.paper), 'Y', OreDictionary.getOres("logWood").get(i));
|
||||
}
|
||||
for (int i = 0; i < OreDictionary.getOres("itemRubber").size(); i++) {
|
||||
rubberBall = GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.itemEMTItems, 1, 10), "XX", "XX", 'X', OreDictionary.getOres("itemRubber").get(i));
|
||||
}
|
||||
|
||||
/** Smelting Recipes **/
|
||||
GameRegistry.addSmelting(new ItemStack(ItemRegistry.itemEMTItems, 1, 1), new ItemStack(ConfigItems.itemResource, 1, 6), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(ItemRegistry.itemEMTItems, 1, 2), new ItemStack(ConfigItems.itemResource, 1, 6), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(ItemRegistry.itemEMTItems, 1, 3), new ItemStack(ConfigItems.itemResource, 1, 3), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(ItemRegistry.itemEMTItems, 1, 4), new ItemStack(ConfigItems.itemResource, 1, 3), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(ItemRegistry.itemEMTItems, 1, 10), new ItemStack(ItemRegistry.itemEMTItems, 2, 8), 0.0F);
|
||||
}
|
||||
|
||||
private static void registerShaplessRecipes() {
|
||||
|
||||
}
|
||||
|
||||
private static void registerSmeltingRecipes() {
|
||||
|
||||
}
|
||||
|
||||
public static void registerEarlyRecipes() {
|
||||
registerShapedRecipes();
|
||||
registerShaplessRecipes();
|
||||
registerSmeltingRecipes();
|
||||
}
|
||||
|
||||
public static void registerUUMInfusionRecipes() {
|
||||
|
||||
ItemStack iridium = IC2Items.getItem("iridiumOre").copy();
|
||||
iridium.stackSize = 2;
|
||||
uraniumToIridium = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", iridium, 4, CraftingAspects.uuMatterInfusions, IC2Items.getItem("Uran238"), new ItemStack[]{uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack uranium = IC2Items.getItem("Uran238").copy();
|
||||
uranium.stackSize = 2;
|
||||
diamondToUranium = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", uranium, 4, CraftingAspects.lesserUUMInfusions, new ItemStack(Items.diamond), new ItemStack[]{uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack diamond = new ItemStack(Items.diamond).copy();
|
||||
diamond.stackSize = 1;
|
||||
goldToDiamond = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", diamond, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(Items.gold_ingot), new ItemStack[]{uuMCell, uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack gold = new ItemStack(Items.gold_ingot).copy();
|
||||
gold.stackSize = 2;
|
||||
ironToGold = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", gold, 4, CraftingAspects.cheapestUUMInfusions, new ItemStack(Items.iron_ingot), new ItemStack[]{uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack ironOre = new ItemStack(Blocks.iron_ore).copy();
|
||||
ironOre.stackSize = 16;
|
||||
stoneBricksToIronOre = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", ironOre, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(Blocks.stonebrick), new ItemStack[]{uuMCell, uuMCell});
|
||||
|
||||
/**
|
||||
* ItemStack copperOre = Items.getItem("copperOre").copy(); BUGGED IN 1.6 IF IC2 OREGEN IS DISABLED
|
||||
**/
|
||||
ItemStack copperOre = IC2Items.getItem("crushedCopperOre").copy();
|
||||
copperOre.stackSize = 32;
|
||||
arcaneStoneToCopperOre = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", copperOre, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 6), new ItemStack[]{uuMCell, uuMCell});
|
||||
|
||||
/**
|
||||
* ItemStack tinOre = Items.getItem("tinOre").copy(); BUGGED IN 1.6 IF IC2 OREGEN IS DISABLED
|
||||
**/
|
||||
ItemStack tinOre = IC2Items.getItem("crushedTinOre").copy();
|
||||
tinOre.stackSize = 32;
|
||||
arcaneStoneBricksToTinOre = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", tinOre, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 7), new ItemStack[]{uuMCell, uuMCell});
|
||||
|
||||
/**
|
||||
* ItemStack leadOre = Items.getItem("leadOre").copy(); BUGGED IN 1.6 IF IC2 OREGEN IS DISABLED
|
||||
**/
|
||||
ItemStack leadOre = IC2Items.getItem("crushedLeadOre").copy();
|
||||
leadOre.stackSize = 32;
|
||||
amberBlockToLeadOre = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", leadOre, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigBlocks.blockCosmeticOpaque, 1, 0), new ItemStack[]{uuMCell, uuMCell});
|
||||
|
||||
ItemStack uraniumOre = IC2Items.getItem("uraniumOre").copy();
|
||||
uraniumOre.stackSize = 8;
|
||||
amberBricksToUraniumOre = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", uraniumOre, 4, CraftingAspects.lesserUUMInfusions, new ItemStack(ConfigBlocks.blockCosmeticOpaque, 1, 1), new ItemStack[]{uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack coal = new ItemStack(Items.coal, 1, 0).copy();
|
||||
coal.stackSize = 16;
|
||||
charcoalToCoal = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", coal, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(Items.coal, 1, 1), new ItemStack[]{uuMCell, uuMCell});
|
||||
|
||||
ItemStack stickyResin = IC2Items.getItem("resin").copy();
|
||||
stickyResin.stackSize = 21;
|
||||
shardToResin = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", stickyResin, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack redstone = new ItemStack(Items.redstone).copy();
|
||||
redstone.stackSize = 24;
|
||||
shardToRedstone = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", redstone, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack lapisLazuli = new ItemStack(Items.dye, 1, 4).copy();
|
||||
lapisLazuli.stackSize = 8;
|
||||
shardToLapis = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", lapisLazuli, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack glowstone = new ItemStack(Blocks.glowstone).copy();
|
||||
glowstone.stackSize = 1;
|
||||
glowstoneDustToBlock = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", glowstone, 4, CraftingAspects.cheapestUUMInfusions, new ItemStack(Items.glowstone_dust), new ItemStack[]{uuMCell});
|
||||
}
|
||||
|
||||
public static void registerLateRecipes() {
|
||||
/** Infusion Recipes **/
|
||||
|
||||
thaumiumDrill = ThaumcraftApi.addInfusionCraftingRecipe("Thaumium Drill", new ItemStack(ItemRegistry.thaumiumDrill), 5, CraftingAspects.thaumiumDrillCrafting, new ItemStack(IC2Items.getItem("diamondDrill").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(Items.diamond), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), IC2Items.getItem("denseplateiron")});
|
||||
|
||||
thaumiumChainsaw = ThaumcraftApi.addInfusionCraftingRecipe("Thaumium Chainsaw", new ItemStack(ItemRegistry.thaumiumChainsaw), 5, CraftingAspects.thaumiumChainsawCrafting, new ItemStack(ItemRegistry.diamondChainsaw, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(Items.diamond), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), IC2Items.getItem("denseplateiron")});
|
||||
|
||||
thaumicQuantumHelmet = ThaumcraftApi.addInfusionCraftingRecipe("Quantum Goggles of Revealing", new ItemStack(ItemRegistry.quantumThaumicHelmet), 6, CraftingAspects.thaumicQuantumHelmetCrafting, new ItemStack(ItemRegistry.nanoThaumicHelmet, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(Items.milk_bucket), new ItemStack(IC2Items.getItem("quantumHelmet").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("advancedCircuit")});
|
||||
|
||||
thaumicNanoHelmet = ThaumcraftApi.addInfusionCraftingRecipe("Nanosuit Goggles of Revealing", new ItemStack(ItemRegistry.nanoThaumicHelmet), 5, CraftingAspects.thaumicNanoHelmetCrafting, new ItemStack(ItemRegistry.electricGoggles, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(Items.gold_ingot), new ItemStack(IC2Items.getItem("nanoHelmet").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), IC2Items.getItem("carbonPlate"), IC2Items.getItem("electronicCircuit")});
|
||||
|
||||
thaumiumOmnitool = ThaumcraftApi.addInfusionCraftingRecipe("Thaumium Omnitool", new ItemStack(ItemRegistry.thaumiumOmnitool), 6, CraftingAspects.thaumiumOmnitoolCrafting, new ItemStack(ItemRegistry.thaumiumChainsaw, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(ItemRegistry.thaumiumDrill, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), IC2Items.getItem("carbonPlate"), IC2Items.getItem("plateobsidian")});
|
||||
|
||||
diamondOmnitoolToThaumium = ThaumcraftApi.addInfusionCraftingRecipe("Thaumium Omnitool", new ItemStack(ItemRegistry.thaumiumOmnitool), 6, CraftingAspects.thaumiumOmnitoolCrafting, new ItemStack(ItemRegistry.diamondOmnitool, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Blocks.diamond_block), new ItemStack(ConfigBlocks.blockMetalDevice, 1, 9), new ItemStack(ConfigBlocks.blockMetalDevice, 1, 9), new ItemStack(IC2Items.getItem("energyCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("carbonPlate"), IC2Items.getItem("advancedCircuit")});
|
||||
|
||||
explosionFocus = ThaumcraftApi.addInfusionCraftingRecipe("Explosion Focus", new ItemStack(ItemRegistry.explosionFocus), 6, CraftingAspects.laserFocusCrafting, new ItemStack(ConfigItems.itemFocusHellbat, 1), new ItemStack[]{new ItemStack(IC2Items.getItem("miningLaser").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(Items.arrow), new ItemStack(Items.gunpowder), new ItemStack(Items.firework_charge), new ItemStack(ConfigItems.itemResource, 1, 1)});
|
||||
|
||||
shieldFocus = ThaumcraftApi.addInfusionCraftingRecipe("Shield Focus", new ItemStack(ItemRegistry.shieldFocus), 4, CraftingAspects.shieldFocusCrafting, new ItemStack(ConfigItems.itemFocusPortableHole, 1), new ItemStack[]{IC2Items.getItem("reinforcedStone"), IC2Items.getItem("reinforcedGlass"), IC2Items.getItem("reinforcedStone"), IC2Items.getItem("reinforcedGlass"), new ItemStack(Blocks.soul_sand), new ItemStack(Blocks.obsidian), new ItemStack(Blocks.obsidian)});
|
||||
|
||||
potentiaGenerator = ThaumcraftApi.addInfusionCraftingRecipe("Potentia Generator", new ItemStack(BlockRegistry.essentiaGens, 1, 0), 6, CraftingAspects.potentiaGeneratorCrafting, IC2Items.getItem("semifluidGenerator"), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(ConfigItems.itemFocusTrade), new ItemStack(Blocks.hopper), new ItemStack(ConfigBlocks.blockJar), IC2Items.getItem("mvTransformer"), IC2Items.getItem("advancedMachine"), IC2Items.getItem("orewashingplant"), IC2Items.getItem("scrap")});
|
||||
|
||||
streamChainsaw = ThaumcraftApi.addInfusionCraftingRecipe("Chainsaw of the Stream", new ItemStack(ItemRegistry.streamChainsaw), 6, CraftingAspects.streamChaisnawCrafting, new ItemStack(ItemRegistry.thaumiumChainsaw, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.water_bucket), new ItemStack(ConfigItems.itemAxeElemental), new ItemStack(ConfigBlocks.blockMagicalLog), new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("overclockerUpgrade")});
|
||||
|
||||
rockbreakerDrill = ThaumcraftApi.addInfusionCraftingRecipe("Drill of the Rockbreaker", new ItemStack(ItemRegistry.rockbreakerDrill), 6, CraftingAspects.rockbreakerDrillCrafting, new ItemStack(ItemRegistry.thaumiumDrill, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.flint_and_steel), new ItemStack(Items.fire_charge), new ItemStack(ConfigItems.itemPickElemental), new ItemStack(ConfigItems.itemShovelElemental), new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("reinforcedStone"), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("overclockerUpgrade")});
|
||||
|
||||
thorHammer = ThaumcraftApi.addInfusionCraftingRecipe("Mjolnir", new ItemStack(ItemRegistry.thorHammer), 7, CraftingAspects.thorHammerCrafting, new ItemStack(ItemRegistry.taintedThorHammer, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(ItemRegistry.itemEMTItems, 1, 6), new ItemStack(ItemRegistry.itemEMTItems, 1, 6), new ItemStack(ConfigItems.itemSwordElemental), new ItemStack(ConfigItems.itemResource, 1, 1), new ItemStack(ConfigItems.itemFocusShock), IC2Items.getItem("rubber")});
|
||||
|
||||
superchargedThorHammer = ThaumcraftApi.addInfusionCraftingRecipe("Supercharged Mjolnir", new ItemStack(ItemRegistry.electricThorHammer), 10, CraftingAspects.superchargedThorHammerCrafting, new ItemStack(ItemRegistry.thorHammer, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(ItemRegistry.itemEMTItems, 1, 6), new ItemStack(ItemRegistry.itemEMTItems, 1, 6), new ItemStack(Blocks.web), new ItemStack(ConfigItems.itemFocusHellbat), new ItemStack(ConfigItems.itemSwordElemental), new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("iridiumPlate"), new ItemStack(IC2Items.getItem("nanoSaber").getItem(), 1, OreDictionary.WILDCARD_VALUE)});
|
||||
|
||||
wandRecharger = ThaumcraftApi.addInfusionCraftingRecipe("Industrial Wand Charging Station", new ItemStack(BlockRegistry.emtMachines, 1, 0), 6, CraftingAspects.wandCharger, new ItemStack(ConfigBlocks.blockStoneDevice, 1, 5), new ItemStack[]{IC2Items.getItem("replicator"), IC2Items.getItem("iridiumPlate"), new ItemStack(Blocks.diamond_block), new ItemStack(ConfigItems.itemShard, 1, 5), new ItemStack(ConfigBlocks.blockJar)});
|
||||
|
||||
solarHelmetRevealing = ThaumcraftApi.addInfusionCraftingRecipe("Solar Helmet of Revealing", new ItemStack(ItemRegistry.solarHelmetRevealing), 5, CraftingAspects.solarHelmetRevealing, new ItemStack(ItemRegistry.quantumThaumicHelmet, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(BlockRegistry.emtSolars, 1, 1), IC2Items.getItem("glassFiberCableItem"), new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ConfigItems.itemShard, 1, 4)});
|
||||
|
||||
electricBootsTravel = ThaumcraftApi.addInfusionCraftingRecipe("Electric Boots of the Traveller", new ItemStack(ItemRegistry.electricBootsTraveller), 2, CraftingAspects.electricBootsTravel, new ItemStack(ConfigItems.itemBootsTraveller), new ItemStack[]{new ItemStack(Items.diamond), IC2Items.getItem("elemotor"), IC2Items.getItem("coil"), IC2Items.getItem("hazmatBoots"), new ItemStack(IC2Items.getItem("advBattery").getItem(), 1, OreDictionary.WILDCARD_VALUE)});
|
||||
|
||||
nanoBootsTravel = ThaumcraftApi.addInfusionCraftingRecipe("Nano Boots of the Traveller", new ItemStack(ItemRegistry.nanoBootsTraveller), 2, CraftingAspects.nanoBootsTravel, new ItemStack(ItemRegistry.electricBootsTraveller, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(IC2Items.getItem("nanoBoots").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2Items.getItem("energyCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE)});
|
||||
|
||||
quantumBootsTravel = ThaumcraftApi.addInfusionCraftingRecipe("Quantum Boots of the Traveller", new ItemStack(ItemRegistry.quantumBootsTraveller), 2, CraftingAspects.quantumBootsTravel, new ItemStack(ItemRegistry.nanoBootsTraveller, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Blocks.diamond_block), new ItemStack(IC2Items.getItem("quantumBoots").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("iridiumPlate")});
|
||||
|
||||
etheralProcessor = ThaumcraftApi.addInfusionCraftingRecipe("Etheral Processor", new ItemStack(BlockRegistry.emtMachines, 1, 1), 3, CraftingAspects.etherealProcessor, IC2Items.getItem("macerator"), new ItemStack[]{IC2Items.getItem("electroFurnace"), new ItemStack(ConfigBlocks.blockMetalDevice, 1, 9), new ItemStack(Blocks.end_stone), new ItemStack(Blocks.end_stone), new ItemStack(Blocks.iron_block), new ItemStack(Blocks.iron_block), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ItemRegistry.itemEMTItems, 1, 5)});
|
||||
|
||||
tripleCompressedSolar = ThaumcraftApi.addInfusionCraftingRecipe("Compressed Solars", new ItemStack(BlockRegistry.emtSolars, 1, 2), 2, CraftingAspects.compressedSolars, new ItemStack(BlockRegistry.emtSolars, 1, 1), new ItemStack[]{new ItemStack(BlockRegistry.emtSolars, 1, 1), new ItemStack(BlockRegistry.emtSolars, 1, 1), new ItemStack(BlockRegistry.emtSolars, 1, 1), new ItemStack(BlockRegistry.emtSolars, 1, 1), new ItemStack(BlockRegistry.emtSolars, 1, 1), new ItemStack(BlockRegistry.emtSolars, 1, 1), new ItemStack(BlockRegistry.emtSolars, 1, 1), new ItemStack(BlockRegistry.emtSolars, 1, 1)});
|
||||
|
||||
electricHoeGrowth = ThaumcraftApi.addInfusionCraftingRecipe("Electric Hoe of Growth", new ItemStack(ItemRegistry.electricHoeGrowth), 4, CraftingAspects.electricHoeGrowth, new ItemStack(ConfigItems.itemHoeElemental), new ItemStack[]{new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2Items.getItem("electricHoe").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(Items.dye, 1, 15), IC2Items.getItem("elemotor"), IC2Items.getItem("coil"), new ItemStack(Blocks.sapling, 1, OreDictionary.WILDCARD_VALUE)});
|
||||
|
||||
chargeFocus = ThaumcraftApi.addInfusionCraftingRecipe("Wand Focus: Charging", new ItemStack(ItemRegistry.chargeFocus), 4, CraftingAspects.chargeFocus, new ItemStack(IC2Items.getItem("advBattery").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{IC2Items.getItem("generator"), IC2Items.getItem("batBox"), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE)});
|
||||
|
||||
wandChargeFocus = ThaumcraftApi.addInfusionCraftingRecipe("Wand Focus: Wand Charging", new ItemStack(ItemRegistry.wandChargeFocus), 5, CraftingAspects.wandChargeFocus, new ItemStack(BlockRegistry.emtMachines, 1, 0), new ItemStack[]{new ItemStack(ItemRegistry.chargeFocus), new ItemStack(IC2Items.getItem("energyPack").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("iridiumPlate")});
|
||||
|
||||
inventoryChargingRing = ThaumcraftApi.addInfusionCraftingRecipe("Inventory Charging Ring", new ItemStack(ItemRegistry.emtBauble, 1, 1), 6, CraftingAspects.inventoryChargingRing, new ItemStack(ConfigItems.itemBaubleBlanks, 1, 1), new ItemStack[]{new ItemStack(ItemRegistry.thaumiumDrill, 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("generator"), IC2Items.getItem("geothermalGenerator"), IC2Items.getItem("waterMill"), IC2Items.getItem("solarPanel"), IC2Items.getItem("windMill"), IC2Items.getItem("nuclearReactor")});
|
||||
|
||||
armorChargingRing = ThaumcraftApi.addInfusionCraftingRecipe("Armor Charging Ring", new ItemStack(ItemRegistry.emtBauble, 1, 0), 6, CraftingAspects.armorChargingRing, new ItemStack(ConfigItems.itemBaubleBlanks, 1, 1), new ItemStack[]{new ItemStack(ItemRegistry.electricBootsTraveller, 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("generator"), IC2Items.getItem("geothermalGenerator"), IC2Items.getItem("waterMill"), IC2Items.getItem("solarPanel"), IC2Items.getItem("windMill"), IC2Items.getItem("nuclearReactor")});
|
||||
|
||||
nanoWings = ThaumcraftApi.addInfusionCraftingRecipe("Nanosuit Wings", new ItemStack(ItemRegistry.nanoWing), 4, CraftingAspects.nanoWing, new ItemStack(ItemRegistry.thaumiumWing), new ItemStack[]{IC2Items.getItem("carbonPlate"), IC2Items.getItem("carbonPlate"), IC2Items.getItem("carbonPlate"), new ItemStack(IC2Items.getItem("nanoBodyarmor").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ConfigItems.itemResource, 1, 1)});
|
||||
|
||||
quantumWings = ThaumcraftApi.addInfusionCraftingRecipe("Quantum Wings", new ItemStack(ItemRegistry.quantumWing), 6, CraftingAspects.quantumWing, new ItemStack(ItemRegistry.nanoWing, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{IC2Items.getItem("iridiumPlate"), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("iridiumPlate"), new ItemStack(IC2Items.getItem("quantumBodyarmor").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ConfigItems.itemResource, 1, 1)});
|
||||
|
||||
/** Arcane Worktable Recipes **/
|
||||
|
||||
diamondOmnitool = ThaumcraftApi.addShapelessArcaneCraftingRecipe("Diamond Omnitool", new ItemStack(ItemRegistry.diamondOmnitool), CraftingAspects.diamondOmnitoolCrafting, new ItemStack(ItemRegistry.diamondChainsaw, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2Items.getItem("diamondDrill").getItem(), 1, OreDictionary.WILDCARD_VALUE));
|
||||
|
||||
ironOmnitoolToDiamond = ThaumcraftApi.addArcaneCraftingRecipe("Diamond Omnitool", new ItemStack(ItemRegistry.diamondOmnitool), CraftingAspects.diamondOmnitoolCrafting, "XAX", "XBX", "XAX", 'X', new ItemStack(Items.diamond), 'A', IC2Items.getItem("advancedCircuit"), 'B', new ItemStack(ItemRegistry.ironOmnitool, 1, OreDictionary.WILDCARD_VALUE));
|
||||
|
||||
christmasFocus = ThaumcraftApi.addArcaneCraftingRecipe("Kris-tmas Focus", new ItemStack(ItemRegistry.christmasFocus), CraftingAspects.christmasFocusCrafting, "XYX", "YZY", "XYX", 'X', new ItemStack(Blocks.snow), 'Y', new ItemStack(Blocks.pumpkin), 'Z', new ItemStack(ConfigItems.itemFocusFrost));
|
||||
|
||||
electricGoggles = ThaumcraftApi.addArcaneCraftingRecipe("Electric Goggles", new ItemStack(ItemRegistry.electricGoggles), CraftingAspects.electricGogglesCrafting, " Y ", "AZA", "BXB", 'Z', new ItemStack(ConfigItems.itemGoggles), 'X', IC2Items.getItem("electronicCircuit"), 'Y', new ItemStack(Items.diamond_helmet), 'A', new ItemStack(IC2Items.getItem("chargedReBattery").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'B', Items.repeater);
|
||||
|
||||
shieldBlock = ThaumcraftApi.addArcaneCraftingRecipe("Shield Blocks", new ItemStack(BlockRegistry.shield, 8), CraftingAspects.shieldBlockCrafting, "XYX", "X X", "XYX", 'X', new ItemStack(Blocks.glass), 'Y', new ItemStack(Blocks.obsidian));
|
||||
|
||||
tinyUranium = ThaumcraftApi.addShapelessArcaneCraftingRecipe("Tiny Uranium", new ItemStack(IC2Items.getItem("smallUran235").getItem(), 7), CraftingAspects.tinyUraniumCrafting, IC2Items.getItem("Uran238"));
|
||||
|
||||
compressedSolar = ThaumcraftApi.addArcaneCraftingRecipe("Compressed Solars", new ItemStack(BlockRegistry.emtSolars, 1, 0), CraftingAspects.compressedSolars, "XXX", "XXX", "XXX", 'X', IC2Items.getItem("solarPanel"));
|
||||
|
||||
doubleCompressedSolar = ThaumcraftApi.addArcaneCraftingRecipe("Compressed Solars", new ItemStack(BlockRegistry.emtSolars, 1, 1), CraftingAspects.compressedSolars, "XXX", "XXX", "XXX", 'X', new ItemStack(BlockRegistry.emtSolars, 1, 0));
|
||||
|
||||
electricScribingTools = ThaumcraftApi.addArcaneCraftingRecipe("Electric Scribing Tools", new ItemStack(ItemRegistry.electricScribingTools), CraftingAspects.electricScribingTools, "YXY", "XZX", "YXY", 'Y', IC2Items.getItem("electronicCircuit"), 'X', new ItemStack(ConfigItems.itemInkwell), 'Z', new ItemStack(IC2Items.getItem("energyCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE));
|
||||
|
||||
thaumiumWing = ThaumcraftApi.addArcaneCraftingRecipe("Thaumium Reinforced Wings", new ItemStack(ItemRegistry.itemEMTItems, 1, 15), CraftingAspects.thaumiumWing, "XYZ", "XYZ", "XYZ", 'X', new ItemStack(ItemRegistry.itemEMTItems, 1, 14), 'Y', new ItemStack(ItemRegistry.itemEMTItems, 1, 5), 'Z', new ItemStack(ItemRegistry.itemEMTItems, 1, 13));
|
||||
|
||||
thaumiumWings = ThaumcraftApi.addArcaneCraftingRecipe("Thaumium Reinforced Wings", new ItemStack(ItemRegistry.thaumiumWing), CraftingAspects.thaumiumWing, "XX", 'X', new ItemStack(ItemRegistry.itemEMTItems, 1, 15));
|
||||
|
||||
/** Crucible Recipes **/
|
||||
|
||||
ignisGenerator = ThaumcraftApi.addCrucibleRecipe("Ignis Generator", new ItemStack(BlockRegistry.essentiaGens, 1, 1), new ItemStack(BlockRegistry.essentiaGens, 1, 0), CraftingAspects.ignisGeneratorCrafting);
|
||||
|
||||
auramGenerator = ThaumcraftApi.addCrucibleRecipe("Auram Generator", new ItemStack(BlockRegistry.essentiaGens, 1, 2), new ItemStack(BlockRegistry.essentiaGens, 1, 0), CraftingAspects.auramGeneratorCrafting);
|
||||
|
||||
arborGenerator = ThaumcraftApi.addCrucibleRecipe("Arbor Generator", new ItemStack(BlockRegistry.essentiaGens, 1, 3), new ItemStack(BlockRegistry.essentiaGens, 1, 0), CraftingAspects.arborGeneratorCrafting);
|
||||
|
||||
aerGenerator = ThaumcraftApi.addCrucibleRecipe("Aer Generator", new ItemStack(BlockRegistry.essentiaGens, 1, 4), new ItemStack(BlockRegistry.essentiaGens, 1, 0), CraftingAspects.aerGenerator);
|
||||
|
||||
waterSolar = ThaumcraftApi.addCrucibleRecipe("Water Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 3), new ItemStack(BlockRegistry.emtSolars, 1, 0), CraftingAspects.waterSolars);
|
||||
|
||||
doubleWaterSolar = ThaumcraftApi.addCrucibleRecipe("Water Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 4), new ItemStack(BlockRegistry.emtSolars, 1, 1), CraftingAspects.waterSolars);
|
||||
|
||||
tripleWaterSolar = ThaumcraftApi.addCrucibleRecipe("Water Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 5), new ItemStack(BlockRegistry.emtSolars, 1, 2), CraftingAspects.waterSolars);
|
||||
|
||||
darkSolar = ThaumcraftApi.addCrucibleRecipe("Entropy Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 6), new ItemStack(BlockRegistry.emtSolars, 1, 0), CraftingAspects.darkSolars);
|
||||
|
||||
doubleDarkSolar = ThaumcraftApi.addCrucibleRecipe("Entropy Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 7), new ItemStack(BlockRegistry.emtSolars, 1, 1), CraftingAspects.darkSolars);
|
||||
|
||||
tripleDarkSolar = ThaumcraftApi.addCrucibleRecipe("Entropy Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 8), new ItemStack(BlockRegistry.emtSolars, 1, 2), CraftingAspects.darkSolars);
|
||||
|
||||
orderSolar = ThaumcraftApi.addCrucibleRecipe("Order Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 9), new ItemStack(BlockRegistry.emtSolars, 1, 0), CraftingAspects.orderSolars);
|
||||
|
||||
doubleOrderSolar = ThaumcraftApi.addCrucibleRecipe("Order Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 10), new ItemStack(BlockRegistry.emtSolars, 1, 1), CraftingAspects.orderSolars);
|
||||
|
||||
tripleOrderSolar = ThaumcraftApi.addCrucibleRecipe("Order Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 11), new ItemStack(BlockRegistry.emtSolars, 1, 2), CraftingAspects.orderSolars);
|
||||
|
||||
fireSolar = ThaumcraftApi.addCrucibleRecipe("Fire Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 12), new ItemStack(BlockRegistry.emtSolars, 1, 0), CraftingAspects.fireSolars);
|
||||
|
||||
doubleFireSolar = ThaumcraftApi.addCrucibleRecipe("Fire Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 13), new ItemStack(BlockRegistry.emtSolars, 1, 1), CraftingAspects.fireSolars);
|
||||
|
||||
tripleFireSolar = ThaumcraftApi.addCrucibleRecipe("Fire Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 14), new ItemStack(BlockRegistry.emtSolars, 1, 2), CraftingAspects.fireSolars);
|
||||
|
||||
airSolar = ThaumcraftApi.addCrucibleRecipe("Air Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars, 1, 15), new ItemStack(BlockRegistry.emtSolars, 1, 0), CraftingAspects.airSolars);
|
||||
|
||||
doubleAirSolar = ThaumcraftApi.addCrucibleRecipe("Air Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars2, 1, 0), new ItemStack(BlockRegistry.emtSolars, 1, 1), CraftingAspects.airSolars);
|
||||
|
||||
tripleAirSolar = ThaumcraftApi.addCrucibleRecipe("Air Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars2, 1, 1), new ItemStack(BlockRegistry.emtSolars, 1, 2), CraftingAspects.airSolars);
|
||||
|
||||
earthSolar = ThaumcraftApi.addCrucibleRecipe("Earth Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars2, 1, 2), new ItemStack(BlockRegistry.emtSolars, 1, 0), CraftingAspects.earthSolars);
|
||||
|
||||
doubleEarthSolar = ThaumcraftApi.addCrucibleRecipe("Earth Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars2, 1, 3), new ItemStack(BlockRegistry.emtSolars, 1, 1), CraftingAspects.earthSolars);
|
||||
|
||||
tripleEarthSolar = ThaumcraftApi.addCrucibleRecipe("Earth Infused Solar Panels", new ItemStack(BlockRegistry.emtSolars2, 1, 4), new ItemStack(BlockRegistry.emtSolars, 1, 2), CraftingAspects.earthSolars);
|
||||
|
||||
portableNode = ThaumcraftApi.addCrucibleRecipe("Portable Node", new ItemStack(BlockRegistry.portableNode), new ItemStack(ConfigItems.itemJarFilled), CraftingAspects.portableNode);
|
||||
|
||||
/** IC2 Stuff related recipes **/
|
||||
|
||||
/* Ore Clusters Macerator Recipes */
|
||||
ItemStack ironClusterRecipe = IC2Items.getItem("smallIronDust").copy();
|
||||
ironClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 16)), null, ironClusterRecipe);
|
||||
|
||||
ItemStack goldClusterRecipe = IC2Items.getItem("smallGoldDust").copy();
|
||||
goldClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 31)), null, goldClusterRecipe);
|
||||
|
||||
ItemStack copperClusterRecipe = IC2Items.getItem("smallCopperDust").copy();
|
||||
copperClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 17)), null, copperClusterRecipe);
|
||||
|
||||
ItemStack tinClusterRecipe = IC2Items.getItem("smallTinDust").copy();
|
||||
tinClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 18)), null, tinClusterRecipe);
|
||||
|
||||
ItemStack silverClusterRecipe = IC2Items.getItem("smallSilverDust").copy();
|
||||
silverClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 19)), null, silverClusterRecipe);
|
||||
|
||||
ItemStack leadClusterRecipe = IC2Items.getItem("smallLeadDust").copy();
|
||||
leadClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 20)), null, leadClusterRecipe);
|
||||
|
||||
/* Thaumium Plates Recipes */
|
||||
thaumiumPlate = GameRegistry.addShapedRecipe(new ItemStack(ItemRegistry.itemEMTItems, 1, 5), "X", "Y", "Z", 'Y', new ItemStack(ConfigItems.itemResource, 1, 2), 'X', new ItemStack(IC2Items.getItem("ForgeHammer").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'Z', new ItemStack(Blocks.obsidian));
|
||||
Recipes.metalformerRolling.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemResource, 1, 2)), null, new ItemStack(ItemRegistry.itemEMTItems, 1, 5));
|
||||
|
||||
/* Iron Sheet Recipe */
|
||||
Recipes.metalformerRolling.addRecipe(new RecipeInputItemStack(IC2Items.getItem("denseplateiron")), null, new ItemStack(ItemRegistry.itemEMTItems, 1, 13));
|
||||
|
||||
/* Ore Processing for Amber and Cinnabar */
|
||||
if (ConfigHandler.removeAmberAndCinnabarMacerating) {
|
||||
for (Iterator<IRecipeInput> it = Recipes.macerator.getRecipes().keySet().iterator(); it.hasNext(); ) {
|
||||
IRecipeInput input = it.next();
|
||||
if (input.matches(new ItemStack(ConfigBlocks.blockCustomOre, 1, 7))) {
|
||||
it.remove();
|
||||
ElectroMagicTools.logger.info(TextHelper.localize("console.EMT.recipes.amberConflict"));
|
||||
}
|
||||
}
|
||||
|
||||
for (Iterator<IRecipeInput> it = Recipes.macerator.getRecipes().keySet().iterator(); it.hasNext(); ) {
|
||||
IRecipeInput input = it.next();
|
||||
if (input.matches(new ItemStack(ConfigBlocks.blockCustomOre, 1, 0))) {
|
||||
it.remove();
|
||||
ElectroMagicTools.logger.info(TextHelper.localize("console.EMT.recipes.cinnabarConflict"));
|
||||
}
|
||||
}
|
||||
}
|
||||
ItemStack crushedAmberRecipe = new ItemStack(ItemRegistry.itemEMTItems, 1, 1);
|
||||
crushedAmberRecipe.stackSize = 2;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigBlocks.blockCustomOre, 1, 7)), null, crushedAmberRecipe);
|
||||
|
||||
ItemStack crushedCinnabarRecipe = new ItemStack(ItemRegistry.itemEMTItems, 1, 3);
|
||||
crushedCinnabarRecipe.stackSize = 2;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigBlocks.blockCustomOre, 1, 0)), null, crushedCinnabarRecipe);
|
||||
|
||||
NBTTagCompound waterAmount = new NBTTagCompound();
|
||||
waterAmount.setInteger("amount", 1000);
|
||||
|
||||
ItemStack smallCopperDust = IC2Items.getItem("smallCopperDust");
|
||||
smallCopperDust.stackSize = 2;
|
||||
ItemStack smallTinDust = IC2Items.getItem("smallTinDust");
|
||||
smallCopperDust.stackSize = 2;
|
||||
|
||||
Recipes.oreWashing.addRecipe(new RecipeInputItemStack(new ItemStack(ItemRegistry.itemEMTItems, 1, 1)), waterAmount, new ItemStack[]{new ItemStack(ItemRegistry.itemEMTItems, 1, 2), smallCopperDust, IC2Items.getItem("stoneDust")});
|
||||
Recipes.oreWashing.addRecipe(new RecipeInputItemStack(new ItemStack(ItemRegistry.itemEMTItems, 1, 3)), waterAmount, new ItemStack[]{new ItemStack(ItemRegistry.itemEMTItems, 1, 4), smallTinDust, IC2Items.getItem("stoneDust")});
|
||||
|
||||
NBTTagCompound heatAmount = new NBTTagCompound();
|
||||
heatAmount.setInteger("minHeat", 1000);
|
||||
|
||||
Recipes.centrifuge.addRecipe(new RecipeInputItemStack(new ItemStack(ItemRegistry.itemEMTItems, 1, 2)), heatAmount, new ItemStack[]{IC2Items.getItem("smallCopperDust"), new ItemStack(ConfigItems.itemResource, 1, 6)});
|
||||
Recipes.centrifuge.addRecipe(new RecipeInputItemStack(new ItemStack(ItemRegistry.itemEMTItems, 1, 4)), heatAmount, new ItemStack[]{IC2Items.getItem("smallTinDust"), new ItemStack(ConfigItems.itemResource, 1, 3)});
|
||||
|
||||
}
|
||||
|
||||
public static IRecipe ironOmnitool;
|
||||
public static IRecipe diamondChainsaw;
|
||||
public static IRecipe ductTape;
|
||||
public static IRecipe rubberBall;
|
||||
public static IRecipe featherMesh;
|
||||
public static IRecipe cardboard;
|
||||
public static IRecipe featherWing;
|
||||
public static IRecipe featherWings;
|
||||
public static IRecipe taintedFeathers;
|
||||
|
||||
public static InfusionRecipe uraniumToIridium;
|
||||
public static InfusionRecipe diamondToUranium;
|
||||
public static InfusionRecipe goldToDiamond;
|
||||
public static InfusionRecipe ironToGold;
|
||||
public static InfusionRecipe stoneBricksToIronOre;
|
||||
public static InfusionRecipe arcaneStoneToCopperOre;
|
||||
public static InfusionRecipe arcaneStoneBricksToTinOre;
|
||||
public static InfusionRecipe amberBlockToLeadOre;
|
||||
public static InfusionRecipe amberBricksToUraniumOre;
|
||||
public static InfusionRecipe charcoalToCoal;
|
||||
public static InfusionRecipe shardToResin;
|
||||
public static InfusionRecipe shardToRedstone;
|
||||
public static InfusionRecipe shardToLapis;
|
||||
public static InfusionRecipe glowstoneDustToBlock;
|
||||
|
||||
public static InfusionRecipe thaumiumDrill;
|
||||
public static InfusionRecipe thaumiumChainsaw;
|
||||
public static InfusionRecipe thaumicQuantumHelmet;
|
||||
public static InfusionRecipe thaumiumOmnitool;
|
||||
public static InfusionRecipe thaumicNanoHelmet;
|
||||
public static InfusionRecipe explosionFocus;
|
||||
public static InfusionRecipe shieldFocus;
|
||||
public static InfusionRecipe potentiaGenerator;
|
||||
public static InfusionRecipe streamChainsaw;
|
||||
public static InfusionRecipe rockbreakerDrill;
|
||||
public static InfusionRecipe thorHammer;
|
||||
public static InfusionRecipe superchargedThorHammer;
|
||||
public static InfusionRecipe wandRecharger;
|
||||
public static InfusionRecipe solarHelmetRevealing;
|
||||
public static InfusionRecipe electricBootsTravel;
|
||||
public static InfusionRecipe nanoBootsTravel;
|
||||
public static InfusionRecipe quantumBootsTravel;
|
||||
public static InfusionRecipe diamondOmnitoolToThaumium;
|
||||
public static InfusionRecipe etheralProcessor;
|
||||
public static InfusionRecipe tripleCompressedSolar;
|
||||
public static InfusionRecipe electricHoeGrowth;
|
||||
public static InfusionRecipe chargeFocus;
|
||||
public static InfusionRecipe wandChargeFocus;
|
||||
public static InfusionRecipe inventoryChargingRing;
|
||||
public static InfusionRecipe armorChargingRing;
|
||||
public static InfusionRecipe nanoWings;
|
||||
public static InfusionRecipe quantumWings;
|
||||
|
||||
public static ShapelessArcaneRecipe diamondOmnitool;
|
||||
public static ShapelessArcaneRecipe tinyUranium;
|
||||
public static ShapedArcaneRecipe christmasFocus;
|
||||
public static ShapedArcaneRecipe electricGoggles;
|
||||
public static ShapedArcaneRecipe shieldBlock;
|
||||
public static ShapedArcaneRecipe compressedSolar;
|
||||
public static ShapedArcaneRecipe doubleCompressedSolar;
|
||||
public static ShapedArcaneRecipe ironOmnitoolToDiamond;
|
||||
public static ShapedArcaneRecipe electricScribingTools;
|
||||
public static ShapedArcaneRecipe thaumiumWing;
|
||||
public static ShapedArcaneRecipe thaumiumWings;
|
||||
|
||||
public static CrucibleRecipe ignisGenerator;
|
||||
public static CrucibleRecipe auramGenerator;
|
||||
public static CrucibleRecipe arborGenerator;
|
||||
public static CrucibleRecipe aerGenerator;
|
||||
public static CrucibleRecipe waterSolar;
|
||||
public static CrucibleRecipe doubleWaterSolar;
|
||||
public static CrucibleRecipe tripleWaterSolar;
|
||||
public static CrucibleRecipe darkSolar;
|
||||
public static CrucibleRecipe doubleDarkSolar;
|
||||
public static CrucibleRecipe tripleDarkSolar;
|
||||
public static CrucibleRecipe orderSolar;
|
||||
public static CrucibleRecipe doubleOrderSolar;
|
||||
public static CrucibleRecipe tripleOrderSolar;
|
||||
public static CrucibleRecipe fireSolar;
|
||||
public static CrucibleRecipe doubleFireSolar;
|
||||
public static CrucibleRecipe tripleFireSolar;
|
||||
public static CrucibleRecipe airSolar;
|
||||
public static CrucibleRecipe doubleAirSolar;
|
||||
public static CrucibleRecipe tripleAirSolar;
|
||||
public static CrucibleRecipe earthSolar;
|
||||
public static CrucibleRecipe doubleEarthSolar;
|
||||
public static CrucibleRecipe tripleEarthSolar;
|
||||
public static CrucibleRecipe portableNode;
|
||||
|
||||
public static IRecipe thaumiumPlate;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package tombenpotter.emt.common;
|
||||
|
||||
import tombenpotter.emt.common.blocks.BlockRegistry;
|
||||
import tombenpotter.emt.common.RecipeRegistry;
|
||||
import tombenpotter.emt.common.items.ItemRegistry;
|
||||
import tombenpotter.emt.common.tile.TileRegistry;
|
||||
|
||||
public class Registry{
|
||||
public static void register(){
|
||||
BlockRegistry.registerBlocks();
|
||||
ItemRegistry.registerItems();
|
||||
TileRegistry.registerTiles();
|
||||
RecipeRegistry.registerEarlyRecipes();
|
||||
}
|
||||
|
||||
public static void registerLate(){
|
||||
RecipeRegistry.registerLateRecipes();
|
||||
RecipeRegistry.registerUUMInfusionRecipes();
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
@@ -10,7 +10,7 @@ public abstract class BlockBase extends Block {
|
||||
public BlockBase(String unlocName, Material material, String textureName, SoundType soundType, float hardness) {
|
||||
super(material);
|
||||
|
||||
setBlockName(ModInformation.modid + ".module.base." + unlocName);
|
||||
setBlockName(ModInformation.modid + ".block." + unlocName);
|
||||
setBlockTextureName(ModInformation.texturePath + ":" + textureName);
|
||||
setCreativeTab(ElectroMagicTools.tabEMT);
|
||||
setStepSound(soundType);
|
||||
@@ -20,7 +20,7 @@ public abstract class BlockBase extends Block {
|
||||
public BlockBase(String unlocName, Material material, SoundType soundType, float hardness) {
|
||||
super(material);
|
||||
|
||||
setBlockName(ModInformation.modid + ".module.base." + unlocName);
|
||||
setBlockName(ModInformation.modid + ".block." + unlocName);
|
||||
setCreativeTab(ElectroMagicTools.tabEMT);
|
||||
setStepSound(soundType);
|
||||
setHardness(hardness);
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -13,7 +13,7 @@ import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.base.tile.TileEntityEMT;
|
||||
import tombenpotter.emt.common.tile.TileEntityEMT;
|
||||
|
||||
public abstract class BlockBaseContainer extends BlockContainer {
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.ic2.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -11,7 +11,7 @@ import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import tombenpotter.emt.common.modules.base.tile.TileEntityEMT;
|
||||
import tombenpotter.emt.common.tile.TileEntityEMT;
|
||||
|
||||
public abstract class BlockEMT extends BlockContainer {
|
||||
public IIcon[] top = new IIcon[16];
|
||||
+3
-3
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -28,8 +28,8 @@ import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.TileEntityEtherealMacerator;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.TileEntityIndustrialWandRecharge;
|
||||
import tombenpotter.emt.common.tile.TileEntityEtherealMacerator;
|
||||
import tombenpotter.emt.common.tile.TileEntityIndustrialWandRecharge;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
+18
-18
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -23,26 +23,26 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.air.TileEntityAirSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.compressed.TileEntityCompressedSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.compressed.TileEntityDoubleCompressedSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.compressed.TileEntityTripleCompressedSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.dark.TileEntityDarkSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.dark.TileEntityDoubleDarkSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.dark.TileEntityTripleDarkSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.fire.TileEntityDoubleFireSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.fire.TileEntityFireSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.fire.TileEntityTripleFireSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.order.TileEntityDoubleOrderSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.order.TileEntityOrderSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.order.TileEntityTripleOrderSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.water.TileEntityDoubleWaterSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.water.TileEntityTripleWaterSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.water.TileEntityWaterSolar;
|
||||
import tombenpotter.emt.common.tile.solars.air.TileEntityAirSolar;
|
||||
import tombenpotter.emt.common.tile.solars.compressed.TileEntityCompressedSolar;
|
||||
import tombenpotter.emt.common.tile.solars.compressed.TileEntityDoubleCompressedSolar;
|
||||
import tombenpotter.emt.common.tile.solars.compressed.TileEntityTripleCompressedSolar;
|
||||
import tombenpotter.emt.common.tile.solars.dark.TileEntityDarkSolar;
|
||||
import tombenpotter.emt.common.tile.solars.dark.TileEntityDoubleDarkSolar;
|
||||
import tombenpotter.emt.common.tile.solars.dark.TileEntityTripleDarkSolar;
|
||||
import tombenpotter.emt.common.tile.solars.fire.TileEntityDoubleFireSolar;
|
||||
import tombenpotter.emt.common.tile.solars.fire.TileEntityFireSolar;
|
||||
import tombenpotter.emt.common.tile.solars.fire.TileEntityTripleFireSolar;
|
||||
import tombenpotter.emt.common.tile.solars.order.TileEntityDoubleOrderSolar;
|
||||
import tombenpotter.emt.common.tile.solars.order.TileEntityOrderSolar;
|
||||
import tombenpotter.emt.common.tile.solars.order.TileEntityTripleOrderSolar;
|
||||
import tombenpotter.emt.common.tile.solars.water.TileEntityDoubleWaterSolar;
|
||||
import tombenpotter.emt.common.tile.solars.water.TileEntityTripleWaterSolar;
|
||||
import tombenpotter.emt.common.tile.solars.water.TileEntityWaterSolar;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class BlockEMTSolars extends BlockIC2Container {
|
||||
public class BlockEMTSolars extends BlockBaseContainer {
|
||||
|
||||
public BlockEMTSolars() {
|
||||
super("solars", Material.iron, soundTypeMetal, 4.0F);
|
||||
+7
-7
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -23,15 +23,15 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.air.TileEntityDoubleAirSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.air.TileEntityTripleAirSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.earth.TileEntityDoubleEarthSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.earth.TileEntityEarthSolar;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.solars.earth.TileEntityTripleEarthSolar;
|
||||
import tombenpotter.emt.common.tile.solars.air.TileEntityDoubleAirSolar;
|
||||
import tombenpotter.emt.common.tile.solars.air.TileEntityTripleAirSolar;
|
||||
import tombenpotter.emt.common.tile.solars.earth.TileEntityDoubleEarthSolar;
|
||||
import tombenpotter.emt.common.tile.solars.earth.TileEntityEarthSolar;
|
||||
import tombenpotter.emt.common.tile.solars.earth.TileEntityTripleEarthSolar;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class BlockEMTSolars2 extends BlockIC2Container {
|
||||
public class BlockEMTSolars2 extends BlockBaseContainer {
|
||||
|
||||
public BlockEMTSolars2() {
|
||||
super("solars.2", Material.iron, soundTypeMetal, 4.0F);
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.ic2.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -10,9 +10,9 @@ import net.minecraft.world.World;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.IEssentiaContainerItem;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.generators.TileEntityEssentiaGenerator;
|
||||
import tombenpotter.emt.common.tile.generators.TileEntityEssentiaGenerator;
|
||||
|
||||
public class BlockEssentiaGenerator extends BlockIC2Container {
|
||||
public class BlockEssentiaGenerator extends BlockBaseContainer {
|
||||
|
||||
public BlockEssentiaGenerator() {
|
||||
super("generator.essentia", Material.iron, soundTypeMetal, 4.0F);
|
||||
+3
-3
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -22,12 +22,12 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.world.World;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.generators.*;
|
||||
import tombenpotter.emt.common.tile.generators.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class BlockEssentiaGenerators extends BlockIC2Container {
|
||||
public class BlockEssentiaGenerators extends BlockBaseContainer {
|
||||
|
||||
public BlockEssentiaGenerators() {
|
||||
super("generator.essentia.2", Material.iron, soundTypeMetal, 4.0F);
|
||||
+2
-2
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.base.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -27,7 +27,7 @@ import net.minecraft.world.World;
|
||||
import thaumcraft.common.blocks.BlockAiry;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.base.tile.TileEntityPortableNode;
|
||||
import tombenpotter.emt.common.tile.TileEntityPortableNode;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
+17
-15
@@ -1,24 +1,22 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014 Tombenpotter.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the terms of the GNU Public License v3.0
|
||||
* which accompanies this distribution, and is available at http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
* This class was made by Tombenpotter and is distributed as a part of the Electro-Magic Tools mod.
|
||||
* Electro-Magic Tools is a derivative work on Thaumcraft 4 (c) Azanor 2012.
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.block.Block;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.ic2.items.blocks.*;
|
||||
import tombenpotter.emt.common.blocks.BlockEMTMachines;
|
||||
import tombenpotter.emt.common.blocks.BlockEMTSolars;
|
||||
import tombenpotter.emt.common.blocks.BlockEMTSolars2;
|
||||
import tombenpotter.emt.common.blocks.BlockEssentiaGenerator;
|
||||
import tombenpotter.emt.common.blocks.BlockEssentiaGenerators;
|
||||
import tombenpotter.emt.common.items.blocks.ItemBlockEMTMachines;
|
||||
import tombenpotter.emt.common.items.blocks.ItemBlockEMTSolars;
|
||||
import tombenpotter.emt.common.items.blocks.ItemBlockEMTSolars2;
|
||||
import tombenpotter.emt.common.items.blocks.ItemBlockEssentiaGenerator;
|
||||
import tombenpotter.emt.common.items.blocks.ItemBlockEssentiaGenerators;
|
||||
|
||||
public class IC2BlockRegistry {
|
||||
public class BlockRegistry {
|
||||
|
||||
public static Block portableNode;
|
||||
public static Block essentiaGens;
|
||||
public static Block shield;
|
||||
public static Block emtSolars;
|
||||
@@ -26,7 +24,11 @@ public class IC2BlockRegistry {
|
||||
public static Block emtSolars2;
|
||||
public static Block essentiaGenerator;
|
||||
|
||||
|
||||
public static void registerBlocks() {
|
||||
portableNode = new BlockPortableNode().setBlockName(ModInformation.modid + ".portablenode");
|
||||
GameRegistry.registerBlock(portableNode, "PortableNode");
|
||||
|
||||
shield = new BlockShield().setBlockName(ModInformation.modid + ".shield");
|
||||
GameRegistry.registerBlock(shield, "ShieldBlock");
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.blocks;
|
||||
package tombenpotter.emt.common.blocks;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.base.entities;
|
||||
package tombenpotter.emt.common.entities;
|
||||
|
||||
import cpw.mods.fml.common.registry.EntityRegistry;
|
||||
import net.minecraft.entity.Entity;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.base.entities;
|
||||
package tombenpotter.emt.common.entities;
|
||||
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.ic2.entities;
|
||||
package tombenpotter.emt.common.entities;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
@@ -8,14 +8,14 @@ public class ItemBase extends Item {
|
||||
|
||||
public ItemBase(String unlocName, String textureName) {
|
||||
super();
|
||||
setUnlocalizedName(ModInformation.modid + ".module.base." + unlocName);
|
||||
setUnlocalizedName(ModInformation.modid + ".item." + unlocName);
|
||||
setTextureName(ModInformation.texturePath + ":" + textureName);
|
||||
setCreativeTab(ElectroMagicTools.tabEMT);
|
||||
}
|
||||
|
||||
public ItemBase(String unlocName) {
|
||||
super();
|
||||
setUnlocalizedName(ModInformation.modid + ".module.base." + unlocName);
|
||||
setUnlocalizedName(ModInformation.modid + ".item." + unlocName);
|
||||
setCreativeTab(ElectroMagicTools.tabEMT);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import baubles.api.BaubleType;
|
||||
import baubles.api.IBauble;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.ic2.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import baubles.api.BaubleType;
|
||||
import baubles.api.IBauble;
|
||||
@@ -19,7 +19,7 @@ import tombenpotter.emt.common.util.ConfigHandler;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
public class ItemIC2Baubles extends ItemIC2 implements IBauble {
|
||||
public class ItemIC2Baubles extends ItemBase implements IBauble {
|
||||
|
||||
public IIcon[] icon = new IIcon[16];
|
||||
public static int wornTick;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.base.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+137
-4
@@ -1,17 +1,42 @@
|
||||
package tombenpotter.emt.common.modules.base.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import thaumcraft.api.ThaumcraftApi;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.base.items.foci.ItemChristmasFocus;
|
||||
import tombenpotter.emt.common.modules.base.items.tools.*;
|
||||
import tombenpotter.emt.common.items.armor.ItemFeatherWing;
|
||||
import tombenpotter.emt.common.items.armor.ItemThaumiumReinforcedWing;
|
||||
import tombenpotter.emt.common.items.armor.boots.ItemElectricBootsTraveller;
|
||||
import tombenpotter.emt.common.items.armor.boots.ItemNanoBootsTraveller;
|
||||
import tombenpotter.emt.common.items.armor.boots.ItemQuantumBootsTraveller;
|
||||
import tombenpotter.emt.common.items.armor.goggles.ItemElectricGoggles;
|
||||
import tombenpotter.emt.common.items.armor.goggles.ItemNanoGoggles;
|
||||
import tombenpotter.emt.common.items.armor.goggles.ItemQuantumGoggles;
|
||||
import tombenpotter.emt.common.items.armor.goggles.ItemSolarHelmetRevealing;
|
||||
import tombenpotter.emt.common.items.armor.wings.ItemNanoWing;
|
||||
import tombenpotter.emt.common.items.armor.wings.ItemQuantumWing;
|
||||
import tombenpotter.emt.common.items.foci.ItemChargeFocus;
|
||||
import tombenpotter.emt.common.items.foci.ItemChristmasFocus;
|
||||
import tombenpotter.emt.common.items.foci.ItemExplosionFocus;
|
||||
import tombenpotter.emt.common.items.foci.ItemShieldFocus;
|
||||
import tombenpotter.emt.common.items.foci.ItemWandChargingFocus;
|
||||
import tombenpotter.emt.common.items.tools.*;
|
||||
import tombenpotter.emt.common.items.tools.chainsaws.ItemDiamondChainsaw;
|
||||
import tombenpotter.emt.common.items.tools.chainsaws.ItemStreamChainsaw;
|
||||
import tombenpotter.emt.common.items.tools.chainsaws.ItemThaumiumChainsaw;
|
||||
import tombenpotter.emt.common.items.tools.drills.ItemRockbreakerDrill;
|
||||
import tombenpotter.emt.common.items.tools.drills.ItemThaumiumDrill;
|
||||
import tombenpotter.emt.common.items.tools.omnitools.ItemOmnitoolDiamond;
|
||||
import tombenpotter.emt.common.items.tools.omnitools.ItemOmnitoolIron;
|
||||
import tombenpotter.emt.common.items.tools.omnitools.ItemOmnitoolThaumium;
|
||||
|
||||
public class BaseItemRegistry {
|
||||
public class ItemRegistry {
|
||||
|
||||
//public static Item woodenDrill, stoneDrill, ironDrill, goldenDrill, diamondDrill, copperDrill, tinDrill, leadDrill, bronzeDrill;
|
||||
//public static Item woodenChainsaw, stoneChainsaw, ironChainsaw, goldenChainsaw, diamondChainsaw, copperChainsaw, tinChainsaw, leadChainsaw, bronzeChainsaw;
|
||||
@@ -20,6 +45,41 @@ public class BaseItemRegistry {
|
||||
public static Item baseBaubles, materials, craftingComponents;
|
||||
|
||||
public static Item focusChristmas;
|
||||
|
||||
public static Item thaumiumDrill;
|
||||
public static Item thaumiumChainsaw;
|
||||
public static Item quantumThaumicHelmet;
|
||||
public static Item diamondChainsaw;
|
||||
public static Item ironOmnitool;
|
||||
public static Item diamondOmnitool;
|
||||
public static Item thaumiumOmnitool;
|
||||
public static Item nanoThaumicHelmet;
|
||||
public static Item explosionFocus;
|
||||
public static Item christmasFocus;
|
||||
public static Item shieldFocus;
|
||||
public static Item electricGoggles;
|
||||
public static Item streamChainsaw;
|
||||
public static Item rockbreakerDrill;
|
||||
public static Item solarHelmetRevealing;
|
||||
public static Item thorHammer;
|
||||
public static Item taintedThorHammer;
|
||||
public static Item electricThorHammer;
|
||||
public static Item electricBootsTraveller;
|
||||
public static Item quantumBootsTraveller;
|
||||
public static Item nanoBootsTraveller;
|
||||
public static Item electricScribingTools;
|
||||
public static Item itemEMTItems;
|
||||
public static Item electricHoeGrowth;
|
||||
public static Item chargeFocus;
|
||||
public static Item emtBauble;
|
||||
public static Item wandChargeFocus;
|
||||
public static Item featherWing;
|
||||
public static Item thaumiumWing;
|
||||
public static Item nanoWing;
|
||||
public static Item quantumWing;
|
||||
|
||||
public static ItemArmor.ArmorMaterial featherWingMaterial = EnumHelper.addArmorMaterial("FEATEHRWiNG", 1, new int[]{2, 2, 2, 2}, 6);
|
||||
|
||||
|
||||
//public static Item.ToolMaterial copperMaterial = EnumHelper.addToolMaterial("copperToolMaterial", 2, 300, 6.0F, 2.0F, 14);
|
||||
//public static Item.ToolMaterial tinMaterial = EnumHelper.addToolMaterial("tinToolMatierial", 2, 200, 8.0F, 4F, 18);
|
||||
@@ -33,6 +93,79 @@ public class BaseItemRegistry {
|
||||
GameRegistry.registerItem(baseBaubles, "BaseBaubles");
|
||||
focusChristmas = new ItemChristmasFocus();
|
||||
GameRegistry.registerItem(focusChristmas, "FocusChristmas");
|
||||
|
||||
itemEMTItems = new ItemMaterials().setUnlocalizedName(ModInformation.modid + ".emtitems");
|
||||
GameRegistry.registerItem(itemEMTItems, "EMTItems");
|
||||
emtBauble = new ItemIC2Baubles().setUnlocalizedName(ModInformation.modid + ".emtbauble");
|
||||
GameRegistry.registerItem(emtBauble, "EMTBaubles");
|
||||
|
||||
electricGoggles = new ItemElectricGoggles(ItemArmor.ArmorMaterial.IRON, 3, 0).setUnlocalizedName(ModInformation.modid + ".goggles.electric");
|
||||
GameRegistry.registerItem(electricGoggles, "ElectricGogglesRevealing");
|
||||
nanoThaumicHelmet = new ItemNanoGoggles(ItemArmor.ArmorMaterial.DIAMOND, 3, 0).setUnlocalizedName(ModInformation.modid + ".goggles.nano");
|
||||
GameRegistry.registerItem(nanoThaumicHelmet, "NanosuitGogglesRevealing");
|
||||
quantumThaumicHelmet = new ItemQuantumGoggles(ItemArmor.ArmorMaterial.DIAMOND, 3, 0).setUnlocalizedName(ModInformation.modid + ".goggles.quantum");
|
||||
GameRegistry.registerItem(quantumThaumicHelmet, "QuantumGogglesRevealing");
|
||||
solarHelmetRevealing = new ItemSolarHelmetRevealing(ItemArmor.ArmorMaterial.DIAMOND, 3, 0).setUnlocalizedName(ModInformation.modid + ".goggles.solar");
|
||||
GameRegistry.registerItem(solarHelmetRevealing, "SolarHelmetRevealing");
|
||||
|
||||
electricBootsTraveller = new ItemElectricBootsTraveller(3, 3).setUnlocalizedName(ModInformation.modid + ".boots.traveller.electric");
|
||||
GameRegistry.registerItem(electricBootsTraveller, "ElectricBootsTraveller");
|
||||
nanoBootsTraveller = new ItemNanoBootsTraveller(3, 3).setUnlocalizedName(ModInformation.modid + ".boots.traveller.nano");
|
||||
GameRegistry.registerItem(nanoBootsTraveller, "NanoBootsTraveller");
|
||||
quantumBootsTraveller = new ItemQuantumBootsTraveller(3, 3).setUnlocalizedName(ModInformation.modid + ".boots.traveller.quantum");
|
||||
GameRegistry.registerItem(quantumBootsTraveller, "QuantumBootsTraveller");
|
||||
|
||||
electricScribingTools = new ItemElectricScribingTools().setUnlocalizedName(ModInformation.modid + ".scribingtools.electric");
|
||||
GameRegistry.registerItem(electricScribingTools, "ElectricScribingTools");
|
||||
|
||||
featherWing = new ItemFeatherWing(featherWingMaterial, 7, 1).setUnlocalizedName(ModInformation.modid + ".wing.feather");
|
||||
GameRegistry.registerItem(featherWing, "FeatherWing");
|
||||
thaumiumWing = new ItemThaumiumReinforcedWing(ThaumcraftApi.armorMatThaumium, 7, 1).setUnlocalizedName(ModInformation.modid + ".wing.thaumium");
|
||||
GameRegistry.registerItem(thaumiumWing, "ThaumiumWing");
|
||||
nanoWing = new ItemNanoWing(ItemArmor.ArmorMaterial.DIAMOND, 7, 1).setUnlocalizedName(ModInformation.modid + ".wing.nano");
|
||||
GameRegistry.registerItem(nanoWing, "NanosuitWing");
|
||||
quantumWing = new ItemQuantumWing(ItemArmor.ArmorMaterial.DIAMOND, 7, 1).setUnlocalizedName(ModInformation.modid + ".wing.quantum");
|
||||
GameRegistry.registerItem(quantumWing, "QuantumWing");
|
||||
|
||||
thorHammer = new ItemThorHammer().setUnlocalizedName(ModInformation.modid + ".hammer");
|
||||
GameRegistry.registerItem(thorHammer, "Mjolnir");
|
||||
taintedThorHammer = new ItemThorHammerBroken().setUnlocalizedName(ModInformation.modid + ".hammer.broken");
|
||||
GameRegistry.registerItem(taintedThorHammer, "TaintedMjolnir");
|
||||
electricThorHammer = new ItemElectricThorHammer().setUnlocalizedName(ModInformation.modid + ".hammer.electric");
|
||||
GameRegistry.registerItem(electricThorHammer, "SuperchargedMjolnir");
|
||||
|
||||
thaumiumDrill = new ItemThaumiumDrill().setUnlocalizedName(ModInformation.modid + ".drill.thaumium");
|
||||
GameRegistry.registerItem(thaumiumDrill, "ThaumiumDrill");
|
||||
|
||||
diamondChainsaw = new ItemDiamondChainsaw().setUnlocalizedName(ModInformation.modid + ".chainsaw.diamond");
|
||||
GameRegistry.registerItem(diamondChainsaw, "DiamondChainsaw");
|
||||
thaumiumChainsaw = new ItemThaumiumChainsaw().setUnlocalizedName(ModInformation.modid + ".chainsaw.thaumium");
|
||||
GameRegistry.registerItem(thaumiumChainsaw, "ThaumiumChainsaw");
|
||||
|
||||
ironOmnitool = new ItemOmnitoolIron().setUnlocalizedName(ModInformation.modid + ".omnitool.iron");
|
||||
GameRegistry.registerItem(ironOmnitool, "Omnitool");
|
||||
diamondOmnitool = new ItemOmnitoolDiamond().setUnlocalizedName(ModInformation.modid + ".omnitool.diamond");
|
||||
GameRegistry.registerItem(diamondOmnitool, "Diamond Omnitool");
|
||||
thaumiumOmnitool = new ItemOmnitoolThaumium().setUnlocalizedName(ModInformation.modid + ".omnitool.thaumium");
|
||||
GameRegistry.registerItem(thaumiumOmnitool, "ThaumiumOmnitool");
|
||||
|
||||
streamChainsaw = new ItemStreamChainsaw().setUnlocalizedName(ModInformation.modid + ".chainsaw.stream");
|
||||
GameRegistry.registerItem(streamChainsaw, "ChainsawStream");
|
||||
rockbreakerDrill = new ItemRockbreakerDrill().setUnlocalizedName(ModInformation.modid + ".drill.rockbreaker");
|
||||
GameRegistry.registerItem(rockbreakerDrill, "DrillRockbreaker");
|
||||
electricHoeGrowth = new ItemElectricHoeGrowth().setUnlocalizedName(ModInformation.modid + ".hoeofgrowth.electric");
|
||||
GameRegistry.registerItem(electricHoeGrowth, "ElectricHoeGrowth");
|
||||
|
||||
explosionFocus = new ItemExplosionFocus();
|
||||
GameRegistry.registerItem(explosionFocus, "ExplosionFocus");
|
||||
christmasFocus = new ItemChristmasFocus();
|
||||
GameRegistry.registerItem(christmasFocus, "ChristmasFocus");
|
||||
shieldFocus = new ItemShieldFocus();
|
||||
GameRegistry.registerItem(shieldFocus, "ShieldFocus");
|
||||
chargeFocus = new ItemChargeFocus();
|
||||
GameRegistry.registerItem(chargeFocus, "ChargingFocus");
|
||||
wandChargeFocus = new ItemWandChargingFocus();
|
||||
GameRegistry.registerItem(wandChargeFocus, "WandChargingFocus");
|
||||
|
||||
//woodCarver = new ItemShardCarver(8).setUnlocalizedName(ModInformation.modid + ".carver.wood");
|
||||
//GameRegistry.registerItem(woodCarver, "woodCarver");
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.items;
|
||||
package tombenpotter.emt.common.items;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.items.armor;
|
||||
package tombenpotter.emt.common.items.armor;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.items.armor;
|
||||
package tombenpotter.emt.common.items.armor;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
* http://www.minecraftforum.net/topic/1813058-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.armor.boots;
|
||||
package tombenpotter.emt.common.items.armor.boots;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
* http://www.minecraftforum.net/topic/1813058-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.armor.boots;
|
||||
package tombenpotter.emt.common.items.armor.boots;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
* http://www.minecraftforum.net/topic/1813058-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.armor.boots;
|
||||
package tombenpotter.emt.common.items.armor.boots;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.armor.goggles;
|
||||
package tombenpotter.emt.common.items.armor.goggles;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.armor.goggles;
|
||||
package tombenpotter.emt.common.items.armor.goggles;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.armor.goggles;
|
||||
package tombenpotter.emt.common.items.armor.goggles;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.armor.goggles;
|
||||
package tombenpotter.emt.common.items.armor.goggles;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.ic2.items.armor.wings;
|
||||
package tombenpotter.emt.common.items.armor.wings;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -18,7 +18,7 @@ import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ISpecialArmor;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.base.items.armor.ItemThaumiumReinforcedWing;
|
||||
import tombenpotter.emt.common.items.armor.ItemThaumiumReinforcedWing;
|
||||
import tombenpotter.emt.common.util.ConfigHandler;
|
||||
|
||||
import java.util.List;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.ic2.items.armor.wings;
|
||||
package tombenpotter.emt.common.items.armor.wings;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.blocks;
|
||||
package tombenpotter.emt.common.items.blocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemBlock;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.blocks;
|
||||
package tombenpotter.emt.common.items.blocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.blocks;
|
||||
package tombenpotter.emt.common.items.blocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.ic2.items.blocks;
|
||||
package tombenpotter.emt.common.items.blocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.blocks;
|
||||
package tombenpotter.emt.common.items.blocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.items.foci;
|
||||
package tombenpotter.emt.common.items.foci;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
+2
-2
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.foci;
|
||||
package tombenpotter.emt.common.items.foci;
|
||||
|
||||
import ic2.api.item.ElectricItem;
|
||||
import ic2.api.item.IElectricItem;
|
||||
@@ -21,7 +21,7 @@ import net.minecraft.world.World;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.common.items.wands.ItemWandCasting;
|
||||
import tombenpotter.emt.common.modules.base.items.foci.ItemBaseFocus;
|
||||
import tombenpotter.emt.common.items.foci.ItemBaseFocus;
|
||||
import tombenpotter.emt.common.util.ConfigHandler;
|
||||
|
||||
public class ItemChargeFocus extends ItemBaseFocus {
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.base.items.foci;
|
||||
package tombenpotter.emt.common.items.foci;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+2
-2
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.base.items.foci;
|
||||
package tombenpotter.emt.common.items.foci;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
@@ -20,7 +20,7 @@ import net.minecraft.world.World;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.common.items.wands.ItemWandCasting;
|
||||
import tombenpotter.emt.common.modules.base.entities.EntityLaser;
|
||||
import tombenpotter.emt.common.entities.EntityLaser;
|
||||
|
||||
public class ItemExplosionFocus extends ItemBaseFocus {
|
||||
|
||||
+12
-12
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.base.items.foci;
|
||||
package tombenpotter.emt.common.items.foci;
|
||||
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Items;
|
||||
@@ -23,7 +23,7 @@ import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.common.items.wands.ItemWandCasting;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.common.modules.ic2.blocks.IC2BlockRegistry;
|
||||
import tombenpotter.emt.common.blocks.BlockRegistry;
|
||||
|
||||
public class ItemShieldFocus extends ItemBaseFocus {
|
||||
|
||||
@@ -71,18 +71,18 @@ public class ItemShieldFocus extends ItemBaseFocus {
|
||||
|
||||
// Player Level
|
||||
if (player.worldObj.isAirBlock(x + 1, y, z) && player.worldObj.isAirBlock(x - 1, y, z) && player.worldObj.isAirBlock(x, y, z + 1) && player.worldObj.isAirBlock(x, y, z - 1)) {
|
||||
player.worldObj.setBlock(x + 1, y, z, IC2BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x - 1, y, z, IC2BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x, y, z + 1, IC2BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x, y, z - 1, IC2BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x + 1, y, z, BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x - 1, y, z, BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x, y, z + 1, BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x, y, z - 1, BlockRegistry.shield);
|
||||
}
|
||||
|
||||
// Above the player
|
||||
if (player.worldObj.isAirBlock(x + 1, y + 1, z) && player.worldObj.isAirBlock(x - 1, y + 1, z) && player.worldObj.isAirBlock(x, y + 1, z + 1) && player.worldObj.isAirBlock(x, y + 1, z - 1)) {
|
||||
player.worldObj.setBlock(x + 1, y + 1, z, IC2BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x - 1, y + 1, z, IC2BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x, y + 1, z + 1, IC2BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x, y + 1, z - 1, IC2BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x + 1, y + 1, z, BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x - 1, y + 1, z, BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x, y + 1, z + 1, BlockRegistry.shield);
|
||||
player.worldObj.setBlock(x, y + 1, z - 1, BlockRegistry.shield);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -94,7 +94,7 @@ public class ItemShieldFocus extends ItemBaseFocus {
|
||||
int z = MathHelper.floor_double(player.posZ);
|
||||
|
||||
// Player Level
|
||||
if ((player.worldObj.getBlock(x + 1, y, z) == IC2BlockRegistry.shield) && (player.worldObj.getBlock(x - 1, y, z) == IC2BlockRegistry.shield) && (player.worldObj.getBlock(x, y, z + 1) == IC2BlockRegistry.shield) && (player.worldObj.getBlock(x, y, z - 1) == IC2BlockRegistry.shield)) {
|
||||
if ((player.worldObj.getBlock(x + 1, y, z) == BlockRegistry.shield) && (player.worldObj.getBlock(x - 1, y, z) == BlockRegistry.shield) && (player.worldObj.getBlock(x, y, z + 1) == BlockRegistry.shield) && (player.worldObj.getBlock(x, y, z - 1) == BlockRegistry.shield)) {
|
||||
player.worldObj.setBlockToAir(x + 1, y, z);
|
||||
player.worldObj.setBlockToAir(x - 1, y, z);
|
||||
player.worldObj.setBlockToAir(x, y, z + 1);
|
||||
@@ -102,7 +102,7 @@ public class ItemShieldFocus extends ItemBaseFocus {
|
||||
}
|
||||
|
||||
// Above the player
|
||||
if ((player.worldObj.getBlock(x + 1, y + 1, z) == IC2BlockRegistry.shield) && (player.worldObj.getBlock(x - 1, y + 1, z) == IC2BlockRegistry.shield) && (player.worldObj.getBlock(x, y + 1, z + 1) == IC2BlockRegistry.shield) && (player.worldObj.getBlock(x, y + 1, z - 1) == IC2BlockRegistry.shield)) {
|
||||
if ((player.worldObj.getBlock(x + 1, y + 1, z) == BlockRegistry.shield) && (player.worldObj.getBlock(x - 1, y + 1, z) == BlockRegistry.shield) && (player.worldObj.getBlock(x, y + 1, z + 1) == BlockRegistry.shield) && (player.worldObj.getBlock(x, y + 1, z - 1) == BlockRegistry.shield)) {
|
||||
player.worldObj.setBlockToAir(x + 1, y + 1, z);
|
||||
player.worldObj.setBlockToAir(x - 1, y + 1, z);
|
||||
player.worldObj.setBlockToAir(x, y + 1, z + 1);
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.ic2.items.foci;
|
||||
package tombenpotter.emt.common.items.foci;
|
||||
|
||||
import ic2.api.item.ElectricItem;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
@@ -6,7 +6,7 @@ import net.minecraft.item.ItemStack;
|
||||
import thaumcraft.api.aspects.Aspect;
|
||||
import thaumcraft.api.aspects.AspectList;
|
||||
import thaumcraft.common.items.wands.ItemWandCasting;
|
||||
import tombenpotter.emt.common.modules.base.items.foci.ItemBaseFocus;
|
||||
import tombenpotter.emt.common.items.foci.ItemBaseFocus;
|
||||
import tombenpotter.emt.common.util.ConfigHandler;
|
||||
|
||||
public class ItemWandChargingFocus extends ItemBaseFocus {
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.tools;
|
||||
package tombenpotter.emt.common.items.tools;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+2
-2
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.tools;
|
||||
package tombenpotter.emt.common.items.tools;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -30,7 +30,7 @@ import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.base.entities.EntityArcher;
|
||||
import tombenpotter.emt.common.entities.EntityArcher;
|
||||
import tombenpotter.emt.common.util.ConfigHandler;
|
||||
import tombenpotter.emt.common.util.TextHelper;
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.base.items.tools;
|
||||
package tombenpotter.emt.common.items.tools;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.base.items.tools;
|
||||
package tombenpotter.emt.common.items.tools;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
package tombenpotter.emt.common.modules.base.items.tools;
|
||||
package tombenpotter.emt.common.items.tools;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import tombenpotter.emt.common.modules.base.items.ItemBaseChainsaw;
|
||||
import tombenpotter.emt.common.items.ItemBaseChainsaw;
|
||||
import tombenpotter.emt.common.util.IRefillable;
|
||||
|
||||
public class ItemVanillaChainsaw extends ItemBaseChainsaw implements IRefillable {
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
package tombenpotter.emt.common.modules.base.items.tools;
|
||||
package tombenpotter.emt.common.items.tools;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import tombenpotter.emt.common.modules.base.items.ItemBaseDrill;
|
||||
import tombenpotter.emt.common.items.ItemBaseDrill;
|
||||
import tombenpotter.emt.common.util.IRefillable;
|
||||
|
||||
public class ItemVanillaDrill extends ItemBaseDrill implements IRefillable {
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
package tombenpotter.emt.common.modules.base.items.tools;
|
||||
package tombenpotter.emt.common.items.tools;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import tombenpotter.emt.common.modules.base.items.ItemBaseOmnitool;
|
||||
import tombenpotter.emt.common.items.ItemBaseOmnitool;
|
||||
import tombenpotter.emt.common.util.IRefillable;
|
||||
|
||||
public class ItemVanillaOmnitool extends ItemBaseOmnitool implements IRefillable{
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.tools.chainsaws;
|
||||
package tombenpotter.emt.common.items.tools.chainsaws;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
* This class originally belongs to Azanor, but with his permission I took it, and modified it to make it work as I wanted to.
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.tools.chainsaws;
|
||||
package tombenpotter.emt.common.items.tools.chainsaws;
|
||||
|
||||
import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.tools.chainsaws;
|
||||
package tombenpotter.emt.common.items.tools.chainsaws;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -12,7 +12,7 @@
|
||||
* This class originally belongs to Azanor, but with his permission I took it, and modified it to make it work as I wanted to.
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.tools.drills;
|
||||
package tombenpotter.emt.common.items.tools.drills;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.tools.drills;
|
||||
package tombenpotter.emt.common.items.tools.drills;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.tools.omnitools;
|
||||
package tombenpotter.emt.common.items.tools.omnitools;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.tools.omnitools;
|
||||
package tombenpotter.emt.common.items.tools.omnitools;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items.tools.omnitools;
|
||||
package tombenpotter.emt.common.items.tools.omnitools;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
@@ -1,56 +0,0 @@
|
||||
package tombenpotter.emt.common.modules;
|
||||
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.common.modules.base.BaseRecipeRegistry;
|
||||
import tombenpotter.emt.common.modules.base.blocks.BaseBlockRegistry;
|
||||
import tombenpotter.emt.common.modules.base.items.BaseItemRegistry;
|
||||
import tombenpotter.emt.common.modules.base.tile.BaseTileRegistry;
|
||||
import tombenpotter.emt.common.modules.ic2.IC2RecipeRegistry;
|
||||
import tombenpotter.emt.common.modules.ic2.blocks.IC2BlockRegistry;
|
||||
import tombenpotter.emt.common.modules.ic2.items.IC2ItemRegistry;
|
||||
import tombenpotter.emt.common.modules.ic2.tile.IC2TileRegistry;
|
||||
import tombenpotter.emt.common.modules.te.TERecipeRegistry;
|
||||
import tombenpotter.emt.common.modules.te.blocks.TEBlockRegistry;
|
||||
import tombenpotter.emt.common.modules.te.items.TEItemRegistry;
|
||||
import tombenpotter.emt.common.util.ConfigHandler;
|
||||
|
||||
import static tombenpotter.emt.common.util.TextHelper.localize;
|
||||
|
||||
public class ModuleRegistry {
|
||||
|
||||
public static void registerModules() {
|
||||
|
||||
BaseBlockRegistry.registerBaseBlocks();
|
||||
BaseItemRegistry.registerItems();
|
||||
BaseTileRegistry.registerBaseTiles();
|
||||
BaseRecipeRegistry.registerRecipes();
|
||||
|
||||
if (ConfigHandler.enableIC2Module) {
|
||||
IC2BlockRegistry.registerBlocks();
|
||||
IC2ItemRegistry.registerItems();
|
||||
IC2TileRegistry.registerTEs();
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.init.recipes"));
|
||||
IC2RecipeRegistry.registerEarlyRecipes();
|
||||
}
|
||||
|
||||
if (ConfigHandler.enableTEModule) {
|
||||
TEBlockRegistry.registerTEBlocks();
|
||||
TEItemRegistry.registerTEItems();
|
||||
TERecipeRegistry.registerTERecipes();
|
||||
}
|
||||
}
|
||||
|
||||
public static void registerLateModules() {
|
||||
|
||||
if (ConfigHandler.enableIC2Module) {
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.postInit.recipes"));
|
||||
IC2RecipeRegistry.registerLateRecipes();
|
||||
ElectroMagicTools.logger.info(localize("console.EMT.postInit.recipes.uumatter"));
|
||||
IC2RecipeRegistry.registerUUMInfusionRecipes();
|
||||
}
|
||||
|
||||
if (ConfigHandler.enableTEModule) {
|
||||
// do stuff
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
package tombenpotter.emt.common.modules.base;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import tombenpotter.emt.common.modules.base.items.BaseItemRegistry;
|
||||
|
||||
public class BaseItemStacks {
|
||||
//public static ItemStack woodenDrill = new ItemStack(BaseItemRegistry.woodenDrill);
|
||||
//public static ItemStack stoneDrill = new ItemStack(BaseItemRegistry.stoneDrill);
|
||||
//public static ItemStack ironDrill = new ItemStack(BaseItemRegistry.ironDrill);
|
||||
//public static ItemStack goldenDrill = new ItemStack(BaseItemRegistry.goldenDrill);
|
||||
//public static ItemStack diamondDrill = new ItemStack(BaseItemRegistry.diamondDrill);
|
||||
//public static ItemStack copperDrill = new ItemStack(BaseItemRegistry.copperDrill);
|
||||
//public static ItemStack tinDrill = new ItemStack(BaseItemRegistry.tinDrill);
|
||||
//public static ItemStack leadDrill = new ItemStack(BaseItemRegistry.leadDrill);
|
||||
//public static ItemStack bronzeDrill = new ItemStack(BaseItemRegistry.bronzeDrill);
|
||||
|
||||
//public static ItemStack woodenChainsaw = new ItemStack(BaseItemRegistry.woodenChainsaw);
|
||||
//public static ItemStack stoneChainsaw = new ItemStack(BaseItemRegistry.stoneChainsaw);
|
||||
//public static ItemStack ironChainsaw = new ItemStack(BaseItemRegistry.ironChainsaw);
|
||||
//public static ItemStack goldenChainsaw = new ItemStack(BaseItemRegistry.goldenChainsaw);
|
||||
//public static ItemStack diamondChainsaw = new ItemStack(BaseItemRegistry.diamondChainsaw);
|
||||
//public static ItemStack copperChainsaw = new ItemStack(BaseItemRegistry.copperChainsaw);
|
||||
//public static ItemStack tinChainsaw = new ItemStack(BaseItemRegistry.tinChainsaw);
|
||||
//public static ItemStack leadChainsaw = new ItemStack(BaseItemRegistry.leadChainsaw);
|
||||
//public static ItemStack bronzeChainsaw = new ItemStack(BaseItemRegistry.bronzeChainsaw);
|
||||
|
||||
//public static ItemStack ironOmnitool = new ItemStack(BaseItemRegistry.ironOmnitool);
|
||||
//public static ItemStack goldenOmnitool = new ItemStack(BaseItemRegistry.goldenOmnitool);
|
||||
//public static ItemStack diamondOmnitool = new ItemStack(BaseItemRegistry.diamondOmnitool);
|
||||
//public static ItemStack copperOmnitool = new ItemStack(BaseItemRegistry.copperOmnitool);
|
||||
//public static ItemStack tinOmnitool = new ItemStack(BaseItemRegistry.tinOmnitool);
|
||||
//public static ItemStack leadOmnitool = new ItemStack(BaseItemRegistry.leadOmnitool);
|
||||
//public static ItemStack bronzeOmnitool = new ItemStack(BaseItemRegistry.bronzeOmnitool);
|
||||
|
||||
public static ItemStack woodenDrillTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 0);
|
||||
public static ItemStack stoneDrillTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 1);
|
||||
public static ItemStack ironDrillTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 2);
|
||||
public static ItemStack goldenDrillTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 3);
|
||||
public static ItemStack diamondDrillTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 4);
|
||||
public static ItemStack copperDrillTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 5);
|
||||
public static ItemStack tinDrillTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 6);
|
||||
public static ItemStack leadDrillTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 7);
|
||||
public static ItemStack bronzeDrillTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 8);
|
||||
|
||||
public static ItemStack woodenChainsawTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 9);
|
||||
public static ItemStack stoneChainsawTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 10);
|
||||
public static ItemStack ironChainsawTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 11);
|
||||
public static ItemStack goldenChainsawTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 12);
|
||||
public static ItemStack diamondChainsawTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 13);
|
||||
public static ItemStack copperChainsawTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 14);
|
||||
public static ItemStack tinChainsawTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 15);
|
||||
public static ItemStack leadChainsawTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 16);
|
||||
public static ItemStack bronzeChainsawTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 17);
|
||||
|
||||
public static ItemStack ironOmnitoolTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 18);
|
||||
public static ItemStack goldenOmnitoolTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 19);
|
||||
public static ItemStack diamondOmnitoolTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 20);
|
||||
public static ItemStack copperOmnitoolTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 21);
|
||||
public static ItemStack tinOmnitoolTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 22);
|
||||
public static ItemStack leadOmnitoolTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 23);
|
||||
public static ItemStack bronzeOmnitoolTop = new ItemStack(BaseItemRegistry.craftingComponents, 1, 24);
|
||||
|
||||
public static ItemStack woodenShard = new ItemStack(BaseItemRegistry.craftingComponents, 1, 25);
|
||||
public static ItemStack stoneShard = new ItemStack(BaseItemRegistry.craftingComponents, 1, 26);
|
||||
public static ItemStack ironShard = new ItemStack(BaseItemRegistry.craftingComponents, 1, 27);
|
||||
public static ItemStack goldenShard = new ItemStack(BaseItemRegistry.craftingComponents, 1, 28);
|
||||
public static ItemStack obsidianShard = new ItemStack(BaseItemRegistry.craftingComponents, 1, 29);
|
||||
public static ItemStack copperShard = new ItemStack(BaseItemRegistry.craftingComponents, 1, 30);
|
||||
public static ItemStack tinShard = new ItemStack(BaseItemRegistry.craftingComponents, 1, 31);
|
||||
public static ItemStack leadShard = new ItemStack(BaseItemRegistry.craftingComponents, 1, 32);
|
||||
public static ItemStack bronzeShard = new ItemStack(BaseItemRegistry.craftingComponents, 1, 33);
|
||||
|
||||
//public static ItemStack woodenCarver = new ItemStack(BaseItemRegistry.woodCarver, 1, OreDictionary.WILDCARD_VALUE);
|
||||
//public static ItemStack stoneCarver = new ItemStack(BaseItemRegistry.stoneCarver, 1, OreDictionary.WILDCARD_VALUE);
|
||||
//public static ItemStack ironCarver = new ItemStack(BaseItemRegistry.ironCarver, 1, OreDictionary.WILDCARD_VALUE);
|
||||
//public static ItemStack obsidianCarver = new ItemStack(BaseItemRegistry.obsidianCarver, 1, OreDictionary.WILDCARD_VALUE);
|
||||
//public static ItemStack diamondCarver = new ItemStack(BaseItemRegistry.obsidianCarver, 1, OreDictionary.WILDCARD_VALUE);
|
||||
}
|
||||
@@ -1,188 +0,0 @@
|
||||
package tombenpotter.emt.common.modules.base;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
public class BaseRecipeRegistry {
|
||||
|
||||
public static IRecipe woodenDrill, stoneDrill, ironDrill, goldenDrill, diamondDrill, copperDrill, tinDrill, leadDrill, bronzeDrill;
|
||||
public static IRecipe woodenChainsaw, stoneChainsaw, ironChainsaw, goldenChainsaw, diamondChainsaw, copperChainsaw, tinChainsaw, leadChainsaw, bronzeChainsaw;
|
||||
public static IRecipe ironOmnitool, goldenOmnitool, diamondOmnitool, copperOmnitool, tinOmnitool, leadOmnitool, bronzeOmnitool;
|
||||
public static IRecipe woodenDrillTop, stoneDrillTop, ironDrillTop, goldenDrillTop, diamondDrillTop, copperDrillTop, tinDrillTop, leadDrillTop, bronzeDrillTop;
|
||||
public static IRecipe woodenChainsawTop, stoneChainsawTop, ironChainsawTop, goldenChainsawTop, diamondChainsawTop, copperChainsawTop, tinChainsawTop, leadChainsawTop, bronzeChainsawTop;
|
||||
public static IRecipe woodenCarver, stoneCarver, ironCarver, obsidianCarver, diamondCarver;
|
||||
|
||||
public static void registerRecipes() {
|
||||
addMiscRecipes();
|
||||
addCarversRecipes();
|
||||
addShardsRecipes();
|
||||
addDrillTopRecipes();
|
||||
addDrillRecipe();
|
||||
addChainsawTopRecipes();
|
||||
addChainsawRecipes();
|
||||
}
|
||||
|
||||
public static void addMiscRecipes() {
|
||||
}
|
||||
|
||||
public static void addCarversRecipes() {
|
||||
//for (int i = 0; i < OreDictionary.getOres("logWood").size(); i++) {
|
||||
// woodenCarver = GameRegistry.addShapedRecipe(BaseItemStacks.woodenCarver, " X ", "YYY", 'X', Items.flint, 'Y', OreDictionary.getOres("logWood").get(i));
|
||||
//}
|
||||
//stoneCarver = GameRegistry.addShapedRecipe(BaseItemStacks.stoneCarver, " X ", "YYY", 'X', Items.flint, 'Y', Blocks.stone);
|
||||
//ironCarver = GameRegistry.addShapedRecipe(BaseItemStacks.ironCarver, " X ", "YYY", 'X', BaseItemStacks.ironShard, 'Y', Blocks.stone);
|
||||
//obsidianCarver = GameRegistry.addShapedRecipe(BaseItemStacks.obsidianCarver, " X ", "YYY", 'X', BaseItemStacks.ironShard, 'Y', Blocks.obsidian);
|
||||
//diamondCarver = GameRegistry.addShapedRecipe(BaseItemStacks.ironCarver, " X ", "YYY", "ZZZ", 'X', BaseItemStacks.obsidianShard, 'Y', Items.diamond, 'Z', Blocks.obsidian);
|
||||
}
|
||||
|
||||
public static void addShardsRecipes() {
|
||||
addCarverRecipe(BaseItemStacks.woodenShard, "logWood");
|
||||
addCarverRecipe(BaseItemStacks.stoneShard, "stone");
|
||||
addCarverRecipe(BaseItemStacks.ironShard, "ingotIron");
|
||||
addCarverRecipe(BaseItemStacks.goldenShard, "ingotGold");
|
||||
addCarverRecipe(BaseItemStacks.obsidianShard, new ItemStack(Blocks.obsidian));
|
||||
|
||||
if (isOreRegistered("ingotCopper"))
|
||||
addCarverRecipe(BaseItemStacks.copperShard, "ingotCopper");
|
||||
if (isOreRegistered("ingotTin"))
|
||||
addCarverRecipe(BaseItemStacks.tinShard, "ingotTin");
|
||||
if (isOreRegistered("ingotLead"))
|
||||
addCarverRecipe(BaseItemStacks.leadShard, "ingotLead");
|
||||
if (isOreRegistered("ingotBronze"))
|
||||
addCarverRecipe(BaseItemStacks.bronzeShard, "ingotBronze");
|
||||
}
|
||||
|
||||
public static void addDrillTopRecipes() {
|
||||
woodenDrillTop = drillTopRecipe(BaseItemStacks.woodenDrillTop, "plankWood", BaseItemStacks.woodenShard);
|
||||
stoneDrillTop = drillTopRecipe(BaseItemStacks.stoneDrillTop, "stone", BaseItemStacks.stoneShard);
|
||||
ironDrillTop = drillTopRecipe(BaseItemStacks.ironDrillTop, "ingotIron", BaseItemStacks.ironShard);
|
||||
goldenDrillTop = drillTopRecipe(BaseItemStacks.goldenDrillTop, "ingotGold", BaseItemStacks.goldenShard);
|
||||
diamondDrillTop = drillTopRecipe(BaseItemStacks.diamondDrillTop, "gemDiamond", BaseItemStacks.obsidianShard);
|
||||
|
||||
if (isOreRegistered("ingotCopper"))
|
||||
copperDrillTop = drillTopRecipe(BaseItemStacks.copperDrillTop, "ingotCopper", BaseItemStacks.copperShard);
|
||||
if (isOreRegistered("ingotTin"))
|
||||
tinDrillTop = drillTopRecipe(BaseItemStacks.tinDrillTop, "ingotTin", BaseItemStacks.tinShard);
|
||||
if (isOreRegistered("ingotLead"))
|
||||
leadDrillTop = drillTopRecipe(BaseItemStacks.leadDrillTop, "ingotLead", BaseItemStacks.leadShard);
|
||||
if (isOreRegistered("ingotBronze"))
|
||||
bronzeDrillTop = drillTopRecipe(BaseItemStacks.bronzeDrillTop, "ingotBronze", BaseItemStacks.bronzeShard);
|
||||
}
|
||||
|
||||
public static void addChainsawTopRecipes() {
|
||||
woodenChainsawTop = chainsawTopRecipe(BaseItemStacks.woodenChainsawTop, "plankWood", BaseItemStacks.woodenShard);
|
||||
stoneChainsawTop = chainsawTopRecipe(BaseItemStacks.stoneChainsawTop, "stone", BaseItemStacks.stoneShard);
|
||||
ironChainsawTop = chainsawTopRecipe(BaseItemStacks.ironChainsawTop, "ingotIron", BaseItemStacks.ironShard);
|
||||
goldenChainsawTop = chainsawTopRecipe(BaseItemStacks.goldenChainsawTop, "ingotGold", BaseItemStacks.goldenShard);
|
||||
diamondChainsawTop = chainsawTopRecipe(BaseItemStacks.diamondChainsawTop, "gemDiamond", BaseItemStacks.obsidianShard);
|
||||
|
||||
if (isOreRegistered("ingotCopper"))
|
||||
copperChainsawTop = chainsawTopRecipe(BaseItemStacks.copperChainsawTop, "ingotCopper", BaseItemStacks.copperShard);
|
||||
if (isOreRegistered("ingotTin"))
|
||||
tinChainsawTop = chainsawTopRecipe(BaseItemStacks.tinChainsawTop, "ingotTin", BaseItemStacks.tinShard);
|
||||
if (isOreRegistered("ingotLead"))
|
||||
leadChainsawTop = chainsawTopRecipe(BaseItemStacks.leadChainsawTop, "ingotLead", BaseItemStacks.leadShard);
|
||||
if (isOreRegistered("ingotBronze"))
|
||||
bronzeChainsawTop = chainsawTopRecipe(BaseItemStacks.bronzeChainsawTop, "ingotBronze", BaseItemStacks.bronzeShard);
|
||||
}
|
||||
|
||||
public static void addDrillRecipe() {
|
||||
//woodenDrill = toolRecipe(BaseItemStacks.woodenDrill, BaseItemStacks.woodenDrillTop, "plankWood", "stickWood");
|
||||
//stoneDrill = toolRecipe(BaseItemStacks.stoneDrill, BaseItemStacks.stoneDrillTop, "stone", "cobblestone");
|
||||
//ironDrill = toolRecipe(BaseItemStacks.ironDrill, BaseItemStacks.ironDrillTop, "ingotIron", new ItemStack(Items.leather));
|
||||
//goldenDrill = toolRecipe(BaseItemStacks.goldenDrill, BaseItemStacks.goldenDrillTop, "ingotGold", new ItemStack(Blocks.obsidian));
|
||||
//diamondDrill = toolRecipe(BaseItemStacks.diamondDrill, BaseItemStacks.diamondDrillTop, "gemDiamond", "ingotGold");
|
||||
//
|
||||
//if (isOreRegistered("ingotCopper") && isOreRegistered("ingotTin"))
|
||||
// copperDrill = toolRecipe(BaseItemStacks.copperDrill, BaseItemStacks.copperDrillTop, "ingotCopper", "ingotTin");
|
||||
//if (isOreRegistered("ingotTin"))
|
||||
// tinDrill = toolRecipe(BaseItemStacks.tinDrill, BaseItemStacks.tinDrillTop, "ingotTin", "ingotGold");
|
||||
//if (isOreRegistered("ingotLead"))
|
||||
// leadDrill = toolRecipe(BaseItemStacks.leadDrill, BaseItemStacks.leadDrillTop, "ingotLead", "ingotIron");
|
||||
//if (isOreRegistered("ingotBronze"))
|
||||
// bronzeDrill = toolRecipe(BaseItemStacks.bronzeDrill, BaseItemStacks.bronzeDrillTop, "ingotBronze", new ItemStack(Blocks.obsidian));
|
||||
}
|
||||
|
||||
public static void addChainsawRecipes() {
|
||||
//woodenChainsaw = toolRecipe(BaseItemStacks.woodenChainsaw, BaseItemStacks.woodenChainsawTop, "plankWood", "stickWood");
|
||||
//stoneChainsaw = toolRecipe(BaseItemStacks.stoneChainsaw, BaseItemStacks.stoneChainsawTop, "stone", "cobblestone");
|
||||
//ironChainsaw = toolRecipe(BaseItemStacks.ironChainsaw, BaseItemStacks.ironChainsawTop, "ingotIron", new ItemStack(Items.leather));
|
||||
//goldenChainsaw = toolRecipe(BaseItemStacks.goldenChainsaw, BaseItemStacks.goldenChainsawTop, "ingotGold", new ItemStack(Blocks.obsidian));
|
||||
//diamondChainsaw = toolRecipe(BaseItemStacks.diamondChainsaw, BaseItemStacks.diamondChainsawTop, "gemDiamond", "ingotGold");
|
||||
//
|
||||
//if (isOreRegistered("ingotCopper") && isOreRegistered("ingotTin"))
|
||||
// copperChainsaw = toolRecipe(BaseItemStacks.copperChainsaw, BaseItemStacks.copperChainsawTop, "ingotCopper", "ingotTin");
|
||||
//if (isOreRegistered("ingotTin"))
|
||||
// tinChainsaw = toolRecipe(BaseItemStacks.tinChainsaw, BaseItemStacks.tinChainsawTop, "ingotTin", "ingotGold");
|
||||
//if (isOreRegistered("ingotLead"))
|
||||
// leadChainsaw = toolRecipe(BaseItemStacks.leadChainsaw, BaseItemStacks.leadChainsawTop, "ingotLead", "ingotIron");
|
||||
//if (isOreRegistered("ingotBronze"))
|
||||
// bronzeChainsaw = toolRecipe(BaseItemStacks.bronzeChainsaw, BaseItemStacks.bronzeChainsawTop, "ingotBronze", new ItemStack(Blocks.obsidian));
|
||||
}
|
||||
|
||||
public static IRecipe toolRecipe(ItemStack output, ItemStack X, String Y, ItemStack Z) {
|
||||
if (isOreRegistered(Y)) {
|
||||
for (int i = 0; i < OreDictionary.getOres(Y).size(); i++) {
|
||||
return GameRegistry.addShapedRecipe(output, " X ", " Y ", "YZY", 'X', X, 'Y', OreDictionary.getOres(Y).get(i), 'Z', Z);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static IRecipe toolRecipe(ItemStack output, ItemStack X, String Y, String Z) {
|
||||
if (isOreRegistered(Y) && isOreRegistered(Z)) {
|
||||
for (int i = 0; i < OreDictionary.getOres(Y).size(); i++) {
|
||||
for (int j = 0; j < OreDictionary.getOres(Z).size(); j++) {
|
||||
return GameRegistry.addShapedRecipe(output, " X ", " Y ", "YZY", 'X', X, 'Y', OreDictionary.getOres(Y).get(j), 'Z', OreDictionary.getOres(Z).get(i));
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static IRecipe drillTopRecipe(ItemStack output, String X, ItemStack Y) {
|
||||
if (isOreRegistered(X)) {
|
||||
for (int i = 0; i < OreDictionary.getOres(X).size(); i++) {
|
||||
return GameRegistry.addShapedRecipe(output, " Y ", "XXX", 'X', OreDictionary.getOres(X).get(i), 'Y', Y);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static IRecipe chainsawTopRecipe(ItemStack output, String X, ItemStack Y) {
|
||||
if (isOreRegistered(X)) {
|
||||
for (int i = 0; i < OreDictionary.getOres(X).size(); i++) {
|
||||
return GameRegistry.addShapedRecipe(output, " Y ", "XYX", "XYX", 'X', OreDictionary.getOres(X).get(i), 'Y', Y);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void addCarverRecipe(ItemStack output, ItemStack input) {
|
||||
//GameRegistry.addShapelessRecipe(output, BaseItemStacks.woodenCarver, input);
|
||||
//GameRegistry.addShapelessRecipe(output, BaseItemStacks.stoneCarver, input);
|
||||
//GameRegistry.addShapelessRecipe(output, BaseItemStacks.ironCarver, input);
|
||||
//GameRegistry.addShapelessRecipe(output, BaseItemStacks.obsidianCarver, input);
|
||||
//GameRegistry.addShapelessRecipe(output, BaseItemStacks.diamondCarver, input);
|
||||
}
|
||||
|
||||
public static void addCarverRecipe(ItemStack output, String input) {
|
||||
//if (isOreRegistered(input)) {
|
||||
// for (int i = 0; i < OreDictionary.getOres(input).size(); i++) {
|
||||
// GameRegistry.addShapelessRecipe(output, BaseItemStacks.woodenCarver, OreDictionary.getOres(input).get(i));
|
||||
// GameRegistry.addShapelessRecipe(output, BaseItemStacks.stoneCarver, OreDictionary.getOres(input).get(i));
|
||||
// GameRegistry.addShapelessRecipe(output, BaseItemStacks.ironCarver, OreDictionary.getOres(input).get(i));
|
||||
// GameRegistry.addShapelessRecipe(output, BaseItemStacks.obsidianCarver, OreDictionary.getOres(input).get(i));
|
||||
// GameRegistry.addShapelessRecipe(output, BaseItemStacks.diamondCarver, OreDictionary.getOres(input).get(i));
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
public static boolean isOreRegistered(String ore) {
|
||||
return !OreDictionary.getOres(ore).isEmpty();
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package tombenpotter.emt.common.modules.base.blocks;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.block.Block;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
|
||||
public class BaseBlockRegistry {
|
||||
|
||||
public static Block portableNode;
|
||||
|
||||
public static void registerBaseBlocks() {
|
||||
portableNode = new BlockPortableNode().setBlockName(ModInformation.modid + ".portablenode");
|
||||
GameRegistry.registerBlock(portableNode, "PortableNode");
|
||||
}
|
||||
}
|
||||
@@ -1,350 +0,0 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014 Tombenpotter.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the terms of the GNU Public License v3.0
|
||||
* which accompanies this distribution, and is available at http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
* This class was made by Tombenpotter and is distributed as a part of the Electro-Magic Tools mod.
|
||||
* Electro-Magic Tools is a derivative work on Thaumcraft 4 (c) Azanor 2012.
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.base.entities;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.IProjectile;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class EntityLaser extends Entity implements IProjectile {
|
||||
|
||||
private int xTile = -1;
|
||||
private int yTile = -1;
|
||||
private int zTile = -1;
|
||||
private Block inTile;
|
||||
private int inData;
|
||||
private boolean inGround;
|
||||
|
||||
public Entity shootingEntity;
|
||||
private int ticksInGround;
|
||||
private int ticksInAir;
|
||||
|
||||
public EntityLaser(World par1World) {
|
||||
super(par1World);
|
||||
this.renderDistanceWeight = 10.0D;
|
||||
this.setSize(0.5F, 0.5F);
|
||||
}
|
||||
|
||||
public EntityLaser(World par1World, double par2, double par4, double par6) {
|
||||
super(par1World);
|
||||
this.renderDistanceWeight = 10.0D;
|
||||
this.setSize(0.5F, 0.5F);
|
||||
this.setPosition(par2, par4, par6);
|
||||
this.yOffset = 0.0F;
|
||||
}
|
||||
|
||||
public EntityLaser(World par1World, EntityLivingBase par2EntityLivingBase, EntityLivingBase par3EntityLivingBase, float par4, float par5) {
|
||||
super(par1World);
|
||||
this.renderDistanceWeight = 10.0D;
|
||||
this.shootingEntity = par2EntityLivingBase;
|
||||
|
||||
this.posY = par2EntityLivingBase.posY + (double) par2EntityLivingBase.getEyeHeight() - 0.10000000149011612D;
|
||||
double d0 = par3EntityLivingBase.posX - par2EntityLivingBase.posX;
|
||||
double d1 = par3EntityLivingBase.boundingBox.minY + (double) (par3EntityLivingBase.height / 3.0F) - this.posY;
|
||||
double d2 = par3EntityLivingBase.posZ - par2EntityLivingBase.posZ;
|
||||
double d3 = (double) MathHelper.sqrt_double(d0 * d0 + d2 * d2);
|
||||
|
||||
if (d3 >= 1.0E-7D) {
|
||||
float f2 = (float) (Math.atan2(d2, d0) * 180.0D / Math.PI) - 90.0F;
|
||||
float f3 = (float) (-(Math.atan2(d1, d3) * 180.0D / Math.PI));
|
||||
double d4 = d0 / d3;
|
||||
double d5 = d2 / d3;
|
||||
this.setLocationAndAngles(par2EntityLivingBase.posX + d4, this.posY, par2EntityLivingBase.posZ + d5, f2, f3);
|
||||
this.yOffset = 0.0F;
|
||||
float f4 = (float) d3 * 0.2F;
|
||||
this.setThrowableHeading(d0, d1 + (double) f4, d2, par4, par5);
|
||||
}
|
||||
}
|
||||
|
||||
public EntityLaser(World par1World, EntityLivingBase par2EntityLivingBase, float par3) {
|
||||
super(par1World);
|
||||
this.renderDistanceWeight = 10.0D;
|
||||
this.shootingEntity = par2EntityLivingBase;
|
||||
|
||||
this.setSize(0.5F, 0.5F);
|
||||
this.setLocationAndAngles(par2EntityLivingBase.posX, par2EntityLivingBase.posY + (double) par2EntityLivingBase.getEyeHeight(), par2EntityLivingBase.posZ, par2EntityLivingBase.rotationYaw, par2EntityLivingBase.rotationPitch);
|
||||
this.posX -= (double) (MathHelper.cos(this.rotationYaw / 180.0F * (float) Math.PI) * 0.16F);
|
||||
this.posY -= 0.10000000149011612D;
|
||||
this.posZ -= (double) (MathHelper.sin(this.rotationYaw / 180.0F * (float) Math.PI) * 0.16F);
|
||||
this.setPosition(this.posX, this.posY, this.posZ);
|
||||
this.yOffset = 0.0F;
|
||||
this.motionX = (double) (-MathHelper.sin(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI));
|
||||
this.motionZ = (double) (MathHelper.cos(this.rotationYaw / 180.0F * (float) Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float) Math.PI));
|
||||
this.motionY = (double) (-MathHelper.sin(this.rotationPitch / 180.0F * (float) Math.PI));
|
||||
this.setThrowableHeading(this.motionX, this.motionY, this.motionZ, par3 * 1.5F, 1.0F);
|
||||
}
|
||||
|
||||
protected void entityInit() {
|
||||
this.dataWatcher.addObject(16, Byte.valueOf((byte) 0));
|
||||
}
|
||||
|
||||
public void setThrowableHeading(double par1, double par3, double par5, float par7, float par8) {
|
||||
float f2 = MathHelper.sqrt_double(par1 * par1 + par3 * par3 + par5 * par5);
|
||||
par1 /= (double) f2;
|
||||
par3 /= (double) f2;
|
||||
par5 /= (double) f2;
|
||||
par1 += this.rand.nextGaussian() * (double) (this.rand.nextBoolean() ? -1 : 1) * 0.007499999832361937D * (double) par8;
|
||||
par3 += this.rand.nextGaussian() * (double) (this.rand.nextBoolean() ? -1 : 1) * 0.007499999832361937D * (double) par8;
|
||||
par5 += this.rand.nextGaussian() * (double) (this.rand.nextBoolean() ? -1 : 1) * 0.007499999832361937D * (double) par8;
|
||||
par1 *= (double) par7;
|
||||
par3 *= (double) par7;
|
||||
par5 *= (double) par7;
|
||||
this.motionX = par1;
|
||||
this.motionY = par3;
|
||||
this.motionZ = par5;
|
||||
float f3 = MathHelper.sqrt_double(par1 * par1 + par5 * par5);
|
||||
this.prevRotationYaw = this.rotationYaw = (float) (Math.atan2(par1, par5) * 180.0D / Math.PI);
|
||||
this.prevRotationPitch = this.rotationPitch = (float) (Math.atan2(par3, (double) f3) * 180.0D / Math.PI);
|
||||
this.ticksInGround = 0;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void setPositionAndRotation2(double par1, double par3, double par5, float par7, float par8, int par9) {
|
||||
this.setPosition(par1, par3, par5);
|
||||
this.setRotation(par7, par8);
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void setVelocity(double par1, double par3, double par5) {
|
||||
this.motionX = par1;
|
||||
this.motionY = par3;
|
||||
this.motionZ = par5;
|
||||
|
||||
if (this.prevRotationPitch == 0.0F && this.prevRotationYaw == 0.0F) {
|
||||
float f = MathHelper.sqrt_double(par1 + par5);
|
||||
this.prevRotationYaw = this.rotationYaw = (float) (Math.atan2(par1, par5) / Math.PI);
|
||||
this.prevRotationPitch = this.rotationPitch = (float) (Math.atan2(par3, (double) f) / Math.PI);
|
||||
this.prevRotationPitch = this.rotationPitch;
|
||||
this.prevRotationYaw = this.rotationYaw;
|
||||
this.setLocationAndAngles(this.posX, this.posY, this.posZ, this.rotationYaw, this.rotationPitch);
|
||||
this.ticksInGround = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public void onUpdate() {
|
||||
super.onUpdate();
|
||||
|
||||
if (this.prevRotationPitch == 0.0F && this.prevRotationYaw == 0.0F) {
|
||||
float f = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);
|
||||
this.prevRotationYaw = this.rotationYaw = (float) (Math.atan2(this.motionX, this.motionZ) * 180.0D / Math.PI);
|
||||
this.prevRotationPitch = this.rotationPitch = (float) (Math.atan2(this.motionY, (double) f) * 180.0D / Math.PI);
|
||||
}
|
||||
|
||||
Block block = this.worldObj.getBlock(this.xTile, this.yTile, this.zTile);
|
||||
if (block.getMaterial() != Material.air) {
|
||||
block.setBlockBoundsBasedOnState(this.worldObj, this.xTile, this.yTile, this.zTile);
|
||||
AxisAlignedBB axisalignedbb = block.getCollisionBoundingBoxFromPool(this.worldObj, this.xTile, this.yTile, this.zTile);
|
||||
|
||||
if (axisalignedbb != null && axisalignedbb.isVecInside(Vec3.createVectorHelper(this.posX, this.posY, this.posZ))) {
|
||||
this.inGround = true;
|
||||
}
|
||||
}
|
||||
Block i = this.worldObj.getBlock(this.xTile, this.yTile, this.zTile);
|
||||
|
||||
i.setBlockBoundsBasedOnState(this.worldObj, this.xTile, this.yTile, this.zTile);
|
||||
AxisAlignedBB axisalignedbb = i.getCollisionBoundingBoxFromPool(this.worldObj, this.xTile, this.yTile, this.zTile);
|
||||
|
||||
if (axisalignedbb != null && axisalignedbb.isVecInside(Vec3.createVectorHelper(this.posX, this.posY, this.posZ))) {
|
||||
this.inGround = true;
|
||||
}
|
||||
|
||||
if (this.inGround) {
|
||||
Block j = this.worldObj.getBlock(this.xTile, this.yTile, this.zTile);
|
||||
int k = this.worldObj.getBlockMetadata(this.xTile, this.yTile, this.zTile);
|
||||
this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, 3, true);
|
||||
this.setDead();
|
||||
if (j == this.inTile && k == this.inData) {
|
||||
++this.ticksInGround;
|
||||
|
||||
if (this.ticksInGround == 1200) {
|
||||
this.setDead();
|
||||
}
|
||||
} else {
|
||||
this.inGround = false;
|
||||
this.motionX *= (double) (this.rand.nextFloat() * 0.2F);
|
||||
this.motionY *= (double) (this.rand.nextFloat() * 0.2F);
|
||||
this.motionZ *= (double) (this.rand.nextFloat() * 0.2F);
|
||||
this.ticksInGround = 0;
|
||||
this.ticksInAir = 0;
|
||||
}
|
||||
} else {
|
||||
++this.ticksInAir;
|
||||
Vec3 vec31 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);
|
||||
Vec3 vec3 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
|
||||
MovingObjectPosition movingobjectposition = this.worldObj.func_147447_a(vec31, vec3, false, true, false);
|
||||
vec31 = Vec3.createVectorHelper(this.posX, this.posY, this.posZ);
|
||||
vec3 = Vec3.createVectorHelper(this.posX + this.motionX, this.posY + this.motionY, this.posZ + this.motionZ);
|
||||
|
||||
if (movingobjectposition != null) {
|
||||
vec3 = Vec3.createVectorHelper(movingobjectposition.hitVec.xCoord, movingobjectposition.hitVec.yCoord, movingobjectposition.hitVec.zCoord);
|
||||
}
|
||||
|
||||
Entity entity = null;
|
||||
List list = this.worldObj.getEntitiesWithinAABBExcludingEntity(this, this.boundingBox.addCoord(this.motionX, this.motionY, this.motionZ).expand(1.0D, 1.0D, 1.0D));
|
||||
double d0 = 0.0D;
|
||||
int l;
|
||||
float f1;
|
||||
|
||||
for (l = 0; l < list.size(); ++l) {
|
||||
Entity entity1 = (Entity) list.get(l);
|
||||
|
||||
if (entity1.canBeCollidedWith() && (entity1 != this.shootingEntity || this.ticksInAir >= 5)) {
|
||||
f1 = 0.3F;
|
||||
AxisAlignedBB axisalignedbb1 = entity1.boundingBox.expand((double) f1, (double) f1, (double) f1);
|
||||
MovingObjectPosition movingobjectposition1 = axisalignedbb1.calculateIntercept(vec3, vec31);
|
||||
|
||||
if (movingobjectposition1 != null) {
|
||||
double d1 = vec3.distanceTo(movingobjectposition1.hitVec);
|
||||
|
||||
if (d1 < d0 || d0 == 0.0D) {
|
||||
entity = entity1;
|
||||
d0 = d1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (entity != null) {
|
||||
movingobjectposition = new MovingObjectPosition(entity);
|
||||
}
|
||||
|
||||
if (movingobjectposition != null && movingobjectposition.entityHit != null && movingobjectposition.entityHit instanceof EntityPlayer) {
|
||||
EntityPlayer entityplayer = (EntityPlayer) movingobjectposition.entityHit;
|
||||
|
||||
if (entityplayer.capabilities.disableDamage || this.shootingEntity instanceof EntityPlayer && !((EntityPlayer) this.shootingEntity).canAttackPlayer(entityplayer)) {
|
||||
movingobjectposition = null;
|
||||
}
|
||||
}
|
||||
|
||||
float f2;
|
||||
float f3;
|
||||
|
||||
if (movingobjectposition != null) {
|
||||
if (movingobjectposition.entityHit != null) {
|
||||
f2 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ);
|
||||
|
||||
{
|
||||
this.motionX *= -0.10000000149011612D;
|
||||
this.motionY *= -0.10000000149011612D;
|
||||
this.motionZ *= -0.10000000149011612D;
|
||||
this.rotationYaw += 180.0F;
|
||||
this.prevRotationYaw += 180.0F;
|
||||
this.ticksInAir = 0;
|
||||
}
|
||||
} else {
|
||||
this.xTile = movingobjectposition.blockX;
|
||||
this.yTile = movingobjectposition.blockY;
|
||||
this.zTile = movingobjectposition.blockZ;
|
||||
this.inTile = this.worldObj.getBlock(this.xTile, this.yTile, this.zTile);
|
||||
this.inData = this.worldObj.getBlockMetadata(this.xTile, this.yTile, this.zTile);
|
||||
this.motionX = (double) ((float) (movingobjectposition.hitVec.xCoord - this.posX));
|
||||
this.motionY = (double) ((float) (movingobjectposition.hitVec.yCoord - this.posY));
|
||||
this.motionZ = (double) ((float) (movingobjectposition.hitVec.zCoord - this.posZ));
|
||||
f2 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionY * this.motionY + this.motionZ * this.motionZ);
|
||||
this.posX -= this.motionX / (double) f2 * 0.05000000074505806D;
|
||||
this.posY -= this.motionY / (double) f2 * 0.05000000074505806D;
|
||||
this.posZ -= this.motionZ / (double) f2 * 0.05000000074505806D;
|
||||
this.playSound("random.bowhit", 1.0F, 1.2F / (this.rand.nextFloat() * 0.2F + 0.9F));
|
||||
this.inGround = true;
|
||||
}
|
||||
}
|
||||
|
||||
this.posX += this.motionX;
|
||||
this.posY += this.motionY;
|
||||
this.posZ += this.motionZ;
|
||||
f2 = MathHelper.sqrt_double(this.motionX * this.motionX + this.motionZ * this.motionZ);
|
||||
this.rotationYaw = (float) (Math.atan2(this.motionX, this.motionZ) * 180.0D / Math.PI);
|
||||
|
||||
for (this.rotationPitch = (float) (Math.atan2(this.motionY, (double) f2) * 180.0D / Math.PI); this.rotationPitch - this.prevRotationPitch < -180.0F; this.prevRotationPitch -= 360.0F) {
|
||||
;
|
||||
}
|
||||
|
||||
while (this.rotationPitch - this.prevRotationPitch >= 180.0F) {
|
||||
this.prevRotationPitch += 360.0F;
|
||||
}
|
||||
|
||||
while (this.rotationYaw - this.prevRotationYaw < -180.0F) {
|
||||
this.prevRotationYaw -= 360.0F;
|
||||
}
|
||||
|
||||
while (this.rotationYaw - this.prevRotationYaw >= 180.0F) {
|
||||
this.prevRotationYaw += 360.0F;
|
||||
}
|
||||
|
||||
this.rotationPitch = this.prevRotationPitch + (this.rotationPitch - this.prevRotationPitch) * 0.2F;
|
||||
this.rotationYaw = this.prevRotationYaw + (this.rotationYaw - this.prevRotationYaw) * 0.2F;
|
||||
float f4 = 0.99F;
|
||||
f1 = 0.05F;
|
||||
|
||||
if (this.isInWater()) {
|
||||
for (int j1 = 0; j1 < 4; ++j1) {
|
||||
f3 = 0.25F;
|
||||
this.worldObj.spawnParticle("bubble", this.posX - this.motionX * (double) f3, this.posY - this.motionY * (double) f3, this.posZ - this.motionZ * (double) f3, this.motionX, this.motionY, this.motionZ);
|
||||
}
|
||||
|
||||
f4 = 0.8F;
|
||||
}
|
||||
|
||||
this.motionX *= (double) f4;
|
||||
this.motionY *= (double) f4;
|
||||
this.motionZ *= (double) f4;
|
||||
this.motionY -= (double) f1;
|
||||
this.setPosition(this.posX, this.posY, this.posZ);
|
||||
}
|
||||
}
|
||||
|
||||
public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound) {
|
||||
par1NBTTagCompound.setShort("xTile", (short) this.xTile);
|
||||
par1NBTTagCompound.setShort("yTile", (short) this.yTile);
|
||||
par1NBTTagCompound.setShort("zTile", (short) this.zTile);
|
||||
par1NBTTagCompound.setByte("inTile", (byte) Block.getIdFromBlock(this.inTile));
|
||||
par1NBTTagCompound.setByte("inData", (byte) this.inData);
|
||||
par1NBTTagCompound.setByte("inGround", (byte) (this.inGround ? 1 : 0));
|
||||
}
|
||||
|
||||
public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound) {
|
||||
this.xTile = par1NBTTagCompound.getShort("xTile");
|
||||
this.yTile = par1NBTTagCompound.getShort("yTile");
|
||||
this.zTile = par1NBTTagCompound.getShort("zTile");
|
||||
this.inTile = Block.getBlockById(par1NBTTagCompound.getByte("inTile") & 255);
|
||||
this.inData = par1NBTTagCompound.getByte("inData") & 255;
|
||||
this.inGround = par1NBTTagCompound.getByte("inGround") == 1;
|
||||
}
|
||||
|
||||
public void onCollide(Entity par1Entity) {
|
||||
if (!this.worldObj.isRemote)
|
||||
;
|
||||
{
|
||||
this.worldObj.createExplosion(this, this.posX, this.posY, this.posZ, 3, true);
|
||||
}
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public float getShadowSize() {
|
||||
return 0.0F;
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
package tombenpotter.emt.common.modules.base.tile;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class BaseTileRegistry {
|
||||
|
||||
public static void registerBaseTiles() {
|
||||
GameRegistry.registerTileEntity(TileEntityPortableNode.class, "tileentityportablenode");
|
||||
}
|
||||
}
|
||||
@@ -1,465 +0,0 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014 Tombenpotter.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the terms of the GNU Public License v3.0
|
||||
* which accompanies this distribution, and is available at http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
* This class was made by Tombenpotter and is distributed as a part of the Electro-Magic Tools mod.
|
||||
* Electro-Magic Tools is a derivative work on Thaumcraft 4 (c) Azanor 2012.
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import ic2.api.item.IC2Items;
|
||||
import ic2.api.recipe.IRecipeInput;
|
||||
import ic2.api.recipe.RecipeInputItemStack;
|
||||
import ic2.api.recipe.Recipes;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import thaumcraft.api.ThaumcraftApi;
|
||||
import thaumcraft.api.crafting.CrucibleRecipe;
|
||||
import thaumcraft.api.crafting.InfusionRecipe;
|
||||
import thaumcraft.api.crafting.ShapedArcaneRecipe;
|
||||
import thaumcraft.api.crafting.ShapelessArcaneRecipe;
|
||||
import thaumcraft.common.config.ConfigBlocks;
|
||||
import thaumcraft.common.config.ConfigItems;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.common.modules.base.blocks.BaseBlockRegistry;
|
||||
import tombenpotter.emt.common.modules.ic2.blocks.IC2BlockRegistry;
|
||||
import tombenpotter.emt.common.modules.ic2.items.IC2ItemRegistry;
|
||||
import tombenpotter.emt.common.util.ConfigHandler;
|
||||
import tombenpotter.emt.common.util.CraftingAspects;
|
||||
import tombenpotter.emt.common.util.TextHelper;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
||||
public class IC2RecipeRegistry {
|
||||
|
||||
public static ItemStack uuMCell = new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 16);
|
||||
|
||||
private static void registerShapedRecipes() {
|
||||
|
||||
/** Crafting Recipes **/
|
||||
ironOmnitool = GameRegistry.addShapedRecipe(new ItemStack(IC2ItemRegistry.ironOmnitool), "X", "Z", "Y", 'X', new ItemStack(IC2Items.getItem("chainsaw").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'Y', new ItemStack(IC2Items.getItem("miningDrill").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'Z', IC2Items.getItem("plateiron"));
|
||||
diamondChainsaw = GameRegistry.addShapedRecipe(new ItemStack(IC2ItemRegistry.diamondChainsaw), " X ", "XYX", 'X', new ItemStack(Items.diamond), 'Y', new ItemStack(IC2Items.getItem("chainsaw").getItem(), 1, OreDictionary.WILDCARD_VALUE));
|
||||
ductTape = GameRegistry.addShapedRecipe(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 9), "XXX", "YYY", "XXX", 'X', new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 8), 'Y', new ItemStack(Items.paper));
|
||||
featherMesh = GameRegistry.addShapedRecipe(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 7), "XYX", "YXY", "XYX", 'X', new ItemStack(Items.feather), 'Y', new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 9));
|
||||
featherWing = GameRegistry.addShapedRecipe(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 12), "XYZ", "XYZ", "XYZ", 'X', new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 7), 'Y', new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 8), 'Z', new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 11));
|
||||
featherWings = GameRegistry.addShapedRecipe(new ItemStack(IC2ItemRegistry.featherWing), "XX", 'X', new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 12));
|
||||
taintedFeathers = GameRegistry.addShapedRecipe(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 14), " X ", "XYX", " X ", 'X', new ItemStack(ConfigItems.itemResource, 1, 12), 'Y', new ItemStack(Items.feather));
|
||||
|
||||
if (!Loader.isModLoaded("gregtech_addon")) {
|
||||
GameRegistry.addShapedRecipe(IC2Items.getItem("diamondDrill"), " Y ", "YXY", 'Y', new ItemStack(Items.diamond), 'X', new ItemStack(IC2Items.getItem("miningDrill").getItem(), 1, OreDictionary.WILDCARD_VALUE));
|
||||
} else {
|
||||
ElectroMagicTools.logger.info(TextHelper.localize("console.EMT.modLoaded.GT"));
|
||||
}
|
||||
|
||||
GameRegistry.addRecipe(IC2Items.getItem("nanoHelmet"), "XYX", "XZX", 'X', IC2Items.getItem("carbonPlate"), 'Y', new ItemStack(IC2Items.getItem("energyCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'Z', new ItemStack(IC2Items.getItem("nightvisionGoggles").getItem(), 1, OreDictionary.WILDCARD_VALUE));
|
||||
GameRegistry.addShapedRecipe(IC2Items.getItem("generator"), "X", "Y", "Z", 'X', new ItemStack(IC2Items.getItem("chargedReBattery").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'Y', IC2Items.getItem("machine"), 'Z', new ItemStack(Blocks.furnace));
|
||||
GameRegistry.addShapedRecipe(IC2Items.getItem("generator"), "X", "Y", "Z", 'X', IC2Items.getItem("reBattery"), 'Y', IC2Items.getItem("machine"), 'Z', new ItemStack(Blocks.furnace));
|
||||
|
||||
/** OreDict Crafting Recipes **/
|
||||
for (int i = 0; i < OreDictionary.getOres("logWood").size(); i++) {
|
||||
cardboard = GameRegistry.addShapedRecipe(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 11), "XXX", "YYY", "XXX", 'X', new ItemStack(Items.paper), 'Y', OreDictionary.getOres("logWood").get(i));
|
||||
}
|
||||
for (int i = 0; i < OreDictionary.getOres("itemRubber").size(); i++) {
|
||||
rubberBall = GameRegistry.addShapedRecipe(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 10), "XX", "XX", 'X', OreDictionary.getOres("itemRubber").get(i));
|
||||
}
|
||||
|
||||
/** Smelting Recipes **/
|
||||
GameRegistry.addSmelting(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 1), new ItemStack(ConfigItems.itemResource, 1, 6), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 2), new ItemStack(ConfigItems.itemResource, 1, 6), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 3), new ItemStack(ConfigItems.itemResource, 1, 3), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 4), new ItemStack(ConfigItems.itemResource, 1, 3), 0.0F);
|
||||
GameRegistry.addSmelting(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 10), new ItemStack(IC2ItemRegistry.itemEMTItems, 2, 8), 0.0F);
|
||||
}
|
||||
|
||||
private static void registerShaplessRecipes() {
|
||||
|
||||
}
|
||||
|
||||
private static void registerSmeltingRecipes() {
|
||||
|
||||
}
|
||||
|
||||
public static void registerEarlyRecipes() {
|
||||
registerShapedRecipes();
|
||||
registerShaplessRecipes();
|
||||
registerSmeltingRecipes();
|
||||
}
|
||||
|
||||
public static void registerUUMInfusionRecipes() {
|
||||
|
||||
ItemStack iridium = IC2Items.getItem("iridiumOre").copy();
|
||||
iridium.stackSize = 2;
|
||||
uraniumToIridium = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", iridium, 4, CraftingAspects.uuMatterInfusions, IC2Items.getItem("Uran238"), new ItemStack[]{uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack uranium = IC2Items.getItem("Uran238").copy();
|
||||
uranium.stackSize = 2;
|
||||
diamondToUranium = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", uranium, 4, CraftingAspects.lesserUUMInfusions, new ItemStack(Items.diamond), new ItemStack[]{uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack diamond = new ItemStack(Items.diamond).copy();
|
||||
diamond.stackSize = 1;
|
||||
goldToDiamond = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", diamond, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(Items.gold_ingot), new ItemStack[]{uuMCell, uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack gold = new ItemStack(Items.gold_ingot).copy();
|
||||
gold.stackSize = 2;
|
||||
ironToGold = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", gold, 4, CraftingAspects.cheapestUUMInfusions, new ItemStack(Items.iron_ingot), new ItemStack[]{uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack ironOre = new ItemStack(Blocks.iron_ore).copy();
|
||||
ironOre.stackSize = 16;
|
||||
stoneBricksToIronOre = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", ironOre, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(Blocks.stonebrick), new ItemStack[]{uuMCell, uuMCell});
|
||||
|
||||
/**
|
||||
* ItemStack copperOre = Items.getItem("copperOre").copy(); BUGGED IN 1.6 IF IC2 OREGEN IS DISABLED
|
||||
**/
|
||||
ItemStack copperOre = IC2Items.getItem("crushedCopperOre").copy();
|
||||
copperOre.stackSize = 32;
|
||||
arcaneStoneToCopperOre = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", copperOre, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 6), new ItemStack[]{uuMCell, uuMCell});
|
||||
|
||||
/**
|
||||
* ItemStack tinOre = Items.getItem("tinOre").copy(); BUGGED IN 1.6 IF IC2 OREGEN IS DISABLED
|
||||
**/
|
||||
ItemStack tinOre = IC2Items.getItem("crushedTinOre").copy();
|
||||
tinOre.stackSize = 32;
|
||||
arcaneStoneBricksToTinOre = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", tinOre, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigBlocks.blockCosmeticSolid, 1, 7), new ItemStack[]{uuMCell, uuMCell});
|
||||
|
||||
/**
|
||||
* ItemStack leadOre = Items.getItem("leadOre").copy(); BUGGED IN 1.6 IF IC2 OREGEN IS DISABLED
|
||||
**/
|
||||
ItemStack leadOre = IC2Items.getItem("crushedLeadOre").copy();
|
||||
leadOre.stackSize = 32;
|
||||
amberBlockToLeadOre = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", leadOre, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigBlocks.blockCosmeticOpaque, 1, 0), new ItemStack[]{uuMCell, uuMCell});
|
||||
|
||||
ItemStack uraniumOre = IC2Items.getItem("uraniumOre").copy();
|
||||
uraniumOre.stackSize = 8;
|
||||
amberBricksToUraniumOre = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", uraniumOre, 4, CraftingAspects.lesserUUMInfusions, new ItemStack(ConfigBlocks.blockCosmeticOpaque, 1, 1), new ItemStack[]{uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack coal = new ItemStack(Items.coal, 1, 0).copy();
|
||||
coal.stackSize = 16;
|
||||
charcoalToCoal = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", coal, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(Items.coal, 1, 1), new ItemStack[]{uuMCell, uuMCell});
|
||||
|
||||
ItemStack stickyResin = IC2Items.getItem("resin").copy();
|
||||
stickyResin.stackSize = 21;
|
||||
shardToResin = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", stickyResin, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack redstone = new ItemStack(Items.redstone).copy();
|
||||
redstone.stackSize = 24;
|
||||
shardToRedstone = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", redstone, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack lapisLazuli = new ItemStack(Items.dye, 1, 4).copy();
|
||||
lapisLazuli.stackSize = 8;
|
||||
shardToLapis = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", lapisLazuli, 4, CraftingAspects.cheapUUMInfusions, new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{uuMCell, uuMCell, uuMCell});
|
||||
|
||||
ItemStack glowstone = new ItemStack(Blocks.glowstone).copy();
|
||||
glowstone.stackSize = 1;
|
||||
glowstoneDustToBlock = ThaumcraftApi.addInfusionCraftingRecipe("UU-Matter Infusion", glowstone, 4, CraftingAspects.cheapestUUMInfusions, new ItemStack(Items.glowstone_dust), new ItemStack[]{uuMCell});
|
||||
}
|
||||
|
||||
public static void registerLateRecipes() {
|
||||
/** Infusion Recipes **/
|
||||
|
||||
thaumiumDrill = ThaumcraftApi.addInfusionCraftingRecipe("Thaumium Drill", new ItemStack(IC2ItemRegistry.thaumiumDrill), 5, CraftingAspects.thaumiumDrillCrafting, new ItemStack(IC2Items.getItem("diamondDrill").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(Items.diamond), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), IC2Items.getItem("denseplateiron")});
|
||||
|
||||
thaumiumChainsaw = ThaumcraftApi.addInfusionCraftingRecipe("Thaumium Chainsaw", new ItemStack(IC2ItemRegistry.thaumiumChainsaw), 5, CraftingAspects.thaumiumChainsawCrafting, new ItemStack(IC2ItemRegistry.diamondChainsaw, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(Items.diamond), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), IC2Items.getItem("denseplateiron")});
|
||||
|
||||
thaumicQuantumHelmet = ThaumcraftApi.addInfusionCraftingRecipe("Quantum Goggles of Revealing", new ItemStack(IC2ItemRegistry.quantumThaumicHelmet), 6, CraftingAspects.thaumicQuantumHelmetCrafting, new ItemStack(IC2ItemRegistry.nanoThaumicHelmet, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(Items.milk_bucket), new ItemStack(IC2Items.getItem("quantumHelmet").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("advancedCircuit")});
|
||||
|
||||
thaumicNanoHelmet = ThaumcraftApi.addInfusionCraftingRecipe("Nanosuit Goggles of Revealing", new ItemStack(IC2ItemRegistry.nanoThaumicHelmet), 5, CraftingAspects.thaumicNanoHelmetCrafting, new ItemStack(IC2ItemRegistry.electricGoggles, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(Items.gold_ingot), new ItemStack(IC2Items.getItem("nanoHelmet").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), IC2Items.getItem("carbonPlate"), IC2Items.getItem("electronicCircuit")});
|
||||
|
||||
thaumiumOmnitool = ThaumcraftApi.addInfusionCraftingRecipe("Thaumium Omnitool", new ItemStack(IC2ItemRegistry.thaumiumOmnitool), 6, CraftingAspects.thaumiumOmnitoolCrafting, new ItemStack(IC2ItemRegistry.thaumiumChainsaw, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(IC2ItemRegistry.thaumiumDrill, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), IC2Items.getItem("carbonPlate"), IC2Items.getItem("plateobsidian")});
|
||||
|
||||
diamondOmnitoolToThaumium = ThaumcraftApi.addInfusionCraftingRecipe("Thaumium Omnitool", new ItemStack(IC2ItemRegistry.thaumiumOmnitool), 6, CraftingAspects.thaumiumOmnitoolCrafting, new ItemStack(IC2ItemRegistry.diamondOmnitool, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Blocks.diamond_block), new ItemStack(ConfigBlocks.blockMetalDevice, 1, 9), new ItemStack(ConfigBlocks.blockMetalDevice, 1, 9), new ItemStack(IC2Items.getItem("energyCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("carbonPlate"), IC2Items.getItem("advancedCircuit")});
|
||||
|
||||
explosionFocus = ThaumcraftApi.addInfusionCraftingRecipe("Explosion Focus", new ItemStack(IC2ItemRegistry.explosionFocus), 6, CraftingAspects.laserFocusCrafting, new ItemStack(ConfigItems.itemFocusHellbat, 1), new ItemStack[]{new ItemStack(IC2Items.getItem("miningLaser").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(Items.arrow), new ItemStack(Items.gunpowder), new ItemStack(Items.firework_charge), new ItemStack(ConfigItems.itemResource, 1, 1)});
|
||||
|
||||
shieldFocus = ThaumcraftApi.addInfusionCraftingRecipe("Shield Focus", new ItemStack(IC2ItemRegistry.shieldFocus), 4, CraftingAspects.shieldFocusCrafting, new ItemStack(ConfigItems.itemFocusPortableHole, 1), new ItemStack[]{IC2Items.getItem("reinforcedStone"), IC2Items.getItem("reinforcedGlass"), IC2Items.getItem("reinforcedStone"), IC2Items.getItem("reinforcedGlass"), new ItemStack(Blocks.soul_sand), new ItemStack(Blocks.obsidian), new ItemStack(Blocks.obsidian)});
|
||||
|
||||
potentiaGenerator = ThaumcraftApi.addInfusionCraftingRecipe("Potentia Generator", new ItemStack(IC2BlockRegistry.essentiaGens, 1, 0), 6, CraftingAspects.potentiaGeneratorCrafting, IC2Items.getItem("semifluidGenerator"), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(ConfigItems.itemFocusTrade), new ItemStack(Blocks.hopper), new ItemStack(ConfigBlocks.blockJar), IC2Items.getItem("mvTransformer"), IC2Items.getItem("advancedMachine"), IC2Items.getItem("orewashingplant"), IC2Items.getItem("scrap")});
|
||||
|
||||
streamChainsaw = ThaumcraftApi.addInfusionCraftingRecipe("Chainsaw of the Stream", new ItemStack(IC2ItemRegistry.streamChainsaw), 6, CraftingAspects.streamChaisnawCrafting, new ItemStack(IC2ItemRegistry.thaumiumChainsaw, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.water_bucket), new ItemStack(ConfigItems.itemAxeElemental), new ItemStack(ConfigBlocks.blockMagicalLog), new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("overclockerUpgrade")});
|
||||
|
||||
rockbreakerDrill = ThaumcraftApi.addInfusionCraftingRecipe("Drill of the Rockbreaker", new ItemStack(IC2ItemRegistry.rockbreakerDrill), 6, CraftingAspects.rockbreakerDrillCrafting, new ItemStack(IC2ItemRegistry.thaumiumDrill, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.flint_and_steel), new ItemStack(Items.fire_charge), new ItemStack(ConfigItems.itemPickElemental), new ItemStack(ConfigItems.itemShovelElemental), new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("reinforcedStone"), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("overclockerUpgrade")});
|
||||
|
||||
thorHammer = ThaumcraftApi.addInfusionCraftingRecipe("Mjolnir", new ItemStack(IC2ItemRegistry.thorHammer), 7, CraftingAspects.thorHammerCrafting, new ItemStack(IC2ItemRegistry.taintedThorHammer, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 6), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 6), new ItemStack(ConfigItems.itemSwordElemental), new ItemStack(ConfigItems.itemResource, 1, 1), new ItemStack(ConfigItems.itemFocusShock), IC2Items.getItem("rubber")});
|
||||
|
||||
superchargedThorHammer = ThaumcraftApi.addInfusionCraftingRecipe("Supercharged Mjolnir", new ItemStack(IC2ItemRegistry.electricThorHammer), 10, CraftingAspects.superchargedThorHammerCrafting, new ItemStack(IC2ItemRegistry.thorHammer, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 6), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 6), new ItemStack(Blocks.web), new ItemStack(ConfigItems.itemFocusHellbat), new ItemStack(ConfigItems.itemSwordElemental), new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("iridiumPlate"), new ItemStack(IC2Items.getItem("nanoSaber").getItem(), 1, OreDictionary.WILDCARD_VALUE)});
|
||||
|
||||
wandRecharger = ThaumcraftApi.addInfusionCraftingRecipe("Industrial Wand Charging Station", new ItemStack(IC2BlockRegistry.emtMachines, 1, 0), 6, CraftingAspects.wandCharger, new ItemStack(ConfigBlocks.blockStoneDevice, 1, 5), new ItemStack[]{IC2Items.getItem("replicator"), IC2Items.getItem("iridiumPlate"), new ItemStack(Blocks.diamond_block), new ItemStack(ConfigItems.itemShard, 1, 5), new ItemStack(ConfigBlocks.blockJar)});
|
||||
|
||||
solarHelmetRevealing = ThaumcraftApi.addInfusionCraftingRecipe("Solar Helmet of Revealing", new ItemStack(IC2ItemRegistry.solarHelmetRevealing), 5, CraftingAspects.solarHelmetRevealing, new ItemStack(IC2ItemRegistry.quantumThaumicHelmet, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), IC2Items.getItem("glassFiberCableItem"), new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ConfigItems.itemShard, 1, 4)});
|
||||
|
||||
electricBootsTravel = ThaumcraftApi.addInfusionCraftingRecipe("Electric Boots of the Traveller", new ItemStack(IC2ItemRegistry.electricBootsTraveller), 2, CraftingAspects.electricBootsTravel, new ItemStack(ConfigItems.itemBootsTraveller), new ItemStack[]{new ItemStack(Items.diamond), IC2Items.getItem("elemotor"), IC2Items.getItem("coil"), IC2Items.getItem("hazmatBoots"), new ItemStack(IC2Items.getItem("advBattery").getItem(), 1, OreDictionary.WILDCARD_VALUE)});
|
||||
|
||||
nanoBootsTravel = ThaumcraftApi.addInfusionCraftingRecipe("Nano Boots of the Traveller", new ItemStack(IC2ItemRegistry.nanoBootsTraveller), 2, CraftingAspects.nanoBootsTravel, new ItemStack(IC2ItemRegistry.electricBootsTraveller, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Items.diamond), new ItemStack(IC2Items.getItem("nanoBoots").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2Items.getItem("energyCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE)});
|
||||
|
||||
quantumBootsTravel = ThaumcraftApi.addInfusionCraftingRecipe("Quantum Boots of the Traveller", new ItemStack(IC2ItemRegistry.quantumBootsTraveller), 2, CraftingAspects.quantumBootsTravel, new ItemStack(IC2ItemRegistry.nanoBootsTraveller, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{new ItemStack(Blocks.diamond_block), new ItemStack(IC2Items.getItem("quantumBoots").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("iridiumPlate")});
|
||||
|
||||
etheralProcessor = ThaumcraftApi.addInfusionCraftingRecipe("Etheral Processor", new ItemStack(IC2BlockRegistry.emtMachines, 1, 1), 3, CraftingAspects.etherealProcessor, IC2Items.getItem("macerator"), new ItemStack[]{IC2Items.getItem("electroFurnace"), new ItemStack(ConfigBlocks.blockMetalDevice, 1, 9), new ItemStack(Blocks.end_stone), new ItemStack(Blocks.end_stone), new ItemStack(Blocks.iron_block), new ItemStack(Blocks.iron_block), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5)});
|
||||
|
||||
tripleCompressedSolar = ThaumcraftApi.addInfusionCraftingRecipe("Compressed Solars", new ItemStack(IC2BlockRegistry.emtSolars, 1, 2), 2, CraftingAspects.compressedSolars, new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), new ItemStack[]{new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1)});
|
||||
|
||||
electricHoeGrowth = ThaumcraftApi.addInfusionCraftingRecipe("Electric Hoe of Growth", new ItemStack(IC2ItemRegistry.electricHoeGrowth), 4, CraftingAspects.electricHoeGrowth, new ItemStack(ConfigItems.itemHoeElemental), new ItemStack[]{new ItemStack(IC2Items.getItem("lapotronCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2Items.getItem("electricHoe").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(Items.dye, 1, 15), IC2Items.getItem("elemotor"), IC2Items.getItem("coil"), new ItemStack(Blocks.sapling, 1, OreDictionary.WILDCARD_VALUE)});
|
||||
|
||||
chargeFocus = ThaumcraftApi.addInfusionCraftingRecipe("Wand Focus: Charging", new ItemStack(IC2ItemRegistry.chargeFocus), 4, CraftingAspects.chargeFocus, new ItemStack(IC2Items.getItem("advBattery").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{IC2Items.getItem("generator"), IC2Items.getItem("batBox"), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ConfigItems.itemShard, 1, OreDictionary.WILDCARD_VALUE)});
|
||||
|
||||
wandChargeFocus = ThaumcraftApi.addInfusionCraftingRecipe("Wand Focus: Wand Charging", new ItemStack(IC2ItemRegistry.wandChargeFocus), 5, CraftingAspects.wandChargeFocus, new ItemStack(IC2BlockRegistry.emtMachines, 1, 0), new ItemStack[]{new ItemStack(IC2ItemRegistry.chargeFocus), new ItemStack(IC2Items.getItem("energyPack").getItem(), 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("iridiumPlate")});
|
||||
|
||||
inventoryChargingRing = ThaumcraftApi.addInfusionCraftingRecipe("Inventory Charging Ring", new ItemStack(IC2ItemRegistry.emtBauble, 1, 1), 6, CraftingAspects.inventoryChargingRing, new ItemStack(ConfigItems.itemBaubleBlanks, 1, 1), new ItemStack[]{new ItemStack(IC2ItemRegistry.thaumiumDrill, 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("generator"), IC2Items.getItem("geothermalGenerator"), IC2Items.getItem("waterMill"), IC2Items.getItem("solarPanel"), IC2Items.getItem("windMill"), IC2Items.getItem("nuclearReactor")});
|
||||
|
||||
armorChargingRing = ThaumcraftApi.addInfusionCraftingRecipe("Armor Charging Ring", new ItemStack(IC2ItemRegistry.emtBauble, 1, 0), 6, CraftingAspects.armorChargingRing, new ItemStack(ConfigItems.itemBaubleBlanks, 1, 1), new ItemStack[]{new ItemStack(IC2ItemRegistry.electricBootsTraveller, 1, OreDictionary.WILDCARD_VALUE), IC2Items.getItem("generator"), IC2Items.getItem("geothermalGenerator"), IC2Items.getItem("waterMill"), IC2Items.getItem("solarPanel"), IC2Items.getItem("windMill"), IC2Items.getItem("nuclearReactor")});
|
||||
|
||||
nanoWings = ThaumcraftApi.addInfusionCraftingRecipe("Nanosuit Wings", new ItemStack(IC2ItemRegistry.nanoWing), 4, CraftingAspects.nanoWing, new ItemStack(IC2ItemRegistry.thaumiumWing), new ItemStack[]{IC2Items.getItem("carbonPlate"), IC2Items.getItem("carbonPlate"), IC2Items.getItem("carbonPlate"), new ItemStack(IC2Items.getItem("nanoBodyarmor").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ConfigItems.itemResource, 1, 1)});
|
||||
|
||||
quantumWings = ThaumcraftApi.addInfusionCraftingRecipe("Quantum Wings", new ItemStack(IC2ItemRegistry.quantumWing), 6, CraftingAspects.quantumWing, new ItemStack(IC2ItemRegistry.nanoWing, 1, OreDictionary.WILDCARD_VALUE), new ItemStack[]{IC2Items.getItem("iridiumPlate"), IC2Items.getItem("iridiumPlate"), IC2Items.getItem("iridiumPlate"), new ItemStack(IC2Items.getItem("quantumBodyarmor").getItem(), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(ConfigItems.itemResource, 1, 1)});
|
||||
|
||||
/** Arcane Worktable Recipes **/
|
||||
|
||||
diamondOmnitool = ThaumcraftApi.addShapelessArcaneCraftingRecipe("Diamond Omnitool", new ItemStack(IC2ItemRegistry.diamondOmnitool), CraftingAspects.diamondOmnitoolCrafting, new ItemStack(IC2ItemRegistry.diamondChainsaw, 1, OreDictionary.WILDCARD_VALUE), new ItemStack(IC2Items.getItem("diamondDrill").getItem(), 1, OreDictionary.WILDCARD_VALUE));
|
||||
|
||||
ironOmnitoolToDiamond = ThaumcraftApi.addArcaneCraftingRecipe("Diamond Omnitool", new ItemStack(IC2ItemRegistry.diamondOmnitool), CraftingAspects.diamondOmnitoolCrafting, "XAX", "XBX", "XAX", 'X', new ItemStack(Items.diamond), 'A', IC2Items.getItem("advancedCircuit"), 'B', new ItemStack(IC2ItemRegistry.ironOmnitool, 1, OreDictionary.WILDCARD_VALUE));
|
||||
|
||||
christmasFocus = ThaumcraftApi.addArcaneCraftingRecipe("Kris-tmas Focus", new ItemStack(IC2ItemRegistry.christmasFocus), CraftingAspects.christmasFocusCrafting, "XYX", "YZY", "XYX", 'X', new ItemStack(Blocks.snow), 'Y', new ItemStack(Blocks.pumpkin), 'Z', new ItemStack(ConfigItems.itemFocusFrost));
|
||||
|
||||
electricGoggles = ThaumcraftApi.addArcaneCraftingRecipe("Electric Goggles", new ItemStack(IC2ItemRegistry.electricGoggles), CraftingAspects.electricGogglesCrafting, " Y ", "AZA", "BXB", 'Z', new ItemStack(ConfigItems.itemGoggles), 'X', IC2Items.getItem("electronicCircuit"), 'Y', new ItemStack(Items.diamond_helmet), 'A', new ItemStack(IC2Items.getItem("chargedReBattery").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'B', Items.repeater);
|
||||
|
||||
shieldBlock = ThaumcraftApi.addArcaneCraftingRecipe("Shield Blocks", new ItemStack(IC2BlockRegistry.shield, 8), CraftingAspects.shieldBlockCrafting, "XYX", "X X", "XYX", 'X', new ItemStack(Blocks.glass), 'Y', new ItemStack(Blocks.obsidian));
|
||||
|
||||
tinyUranium = ThaumcraftApi.addShapelessArcaneCraftingRecipe("Tiny Uranium", new ItemStack(IC2Items.getItem("smallUran235").getItem(), 7), CraftingAspects.tinyUraniumCrafting, IC2Items.getItem("Uran238"));
|
||||
|
||||
compressedSolar = ThaumcraftApi.addArcaneCraftingRecipe("Compressed Solars", new ItemStack(IC2BlockRegistry.emtSolars, 1, 0), CraftingAspects.compressedSolars, "XXX", "XXX", "XXX", 'X', IC2Items.getItem("solarPanel"));
|
||||
|
||||
doubleCompressedSolar = ThaumcraftApi.addArcaneCraftingRecipe("Compressed Solars", new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), CraftingAspects.compressedSolars, "XXX", "XXX", "XXX", 'X', new ItemStack(IC2BlockRegistry.emtSolars, 1, 0));
|
||||
|
||||
electricScribingTools = ThaumcraftApi.addArcaneCraftingRecipe("Electric Scribing Tools", new ItemStack(IC2ItemRegistry.electricScribingTools), CraftingAspects.electricScribingTools, "YXY", "XZX", "YXY", 'Y', IC2Items.getItem("electronicCircuit"), 'X', new ItemStack(ConfigItems.itemInkwell), 'Z', new ItemStack(IC2Items.getItem("energyCrystal").getItem(), 1, OreDictionary.WILDCARD_VALUE));
|
||||
|
||||
thaumiumWing = ThaumcraftApi.addArcaneCraftingRecipe("Thaumium Reinforced Wings", new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 15), CraftingAspects.thaumiumWing, "XYZ", "XYZ", "XYZ", 'X', new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 14), 'Y', new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), 'Z', new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 13));
|
||||
|
||||
thaumiumWings = ThaumcraftApi.addArcaneCraftingRecipe("Thaumium Reinforced Wings", new ItemStack(IC2ItemRegistry.thaumiumWing), CraftingAspects.thaumiumWing, "XX", 'X', new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 15));
|
||||
|
||||
/** Crucible Recipes **/
|
||||
|
||||
ignisGenerator = ThaumcraftApi.addCrucibleRecipe("Ignis Generator", new ItemStack(IC2BlockRegistry.essentiaGens, 1, 1), new ItemStack(IC2BlockRegistry.essentiaGens, 1, 0), CraftingAspects.ignisGeneratorCrafting);
|
||||
|
||||
auramGenerator = ThaumcraftApi.addCrucibleRecipe("Auram Generator", new ItemStack(IC2BlockRegistry.essentiaGens, 1, 2), new ItemStack(IC2BlockRegistry.essentiaGens, 1, 0), CraftingAspects.auramGeneratorCrafting);
|
||||
|
||||
arborGenerator = ThaumcraftApi.addCrucibleRecipe("Arbor Generator", new ItemStack(IC2BlockRegistry.essentiaGens, 1, 3), new ItemStack(IC2BlockRegistry.essentiaGens, 1, 0), CraftingAspects.arborGeneratorCrafting);
|
||||
|
||||
aerGenerator = ThaumcraftApi.addCrucibleRecipe("Aer Generator", new ItemStack(IC2BlockRegistry.essentiaGens, 1, 4), new ItemStack(IC2BlockRegistry.essentiaGens, 1, 0), CraftingAspects.aerGenerator);
|
||||
|
||||
waterSolar = ThaumcraftApi.addCrucibleRecipe("Water Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 3), new ItemStack(IC2BlockRegistry.emtSolars, 1, 0), CraftingAspects.waterSolars);
|
||||
|
||||
doubleWaterSolar = ThaumcraftApi.addCrucibleRecipe("Water Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 4), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), CraftingAspects.waterSolars);
|
||||
|
||||
tripleWaterSolar = ThaumcraftApi.addCrucibleRecipe("Water Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 5), new ItemStack(IC2BlockRegistry.emtSolars, 1, 2), CraftingAspects.waterSolars);
|
||||
|
||||
darkSolar = ThaumcraftApi.addCrucibleRecipe("Entropy Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 6), new ItemStack(IC2BlockRegistry.emtSolars, 1, 0), CraftingAspects.darkSolars);
|
||||
|
||||
doubleDarkSolar = ThaumcraftApi.addCrucibleRecipe("Entropy Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 7), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), CraftingAspects.darkSolars);
|
||||
|
||||
tripleDarkSolar = ThaumcraftApi.addCrucibleRecipe("Entropy Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 8), new ItemStack(IC2BlockRegistry.emtSolars, 1, 2), CraftingAspects.darkSolars);
|
||||
|
||||
orderSolar = ThaumcraftApi.addCrucibleRecipe("Order Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 9), new ItemStack(IC2BlockRegistry.emtSolars, 1, 0), CraftingAspects.orderSolars);
|
||||
|
||||
doubleOrderSolar = ThaumcraftApi.addCrucibleRecipe("Order Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 10), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), CraftingAspects.orderSolars);
|
||||
|
||||
tripleOrderSolar = ThaumcraftApi.addCrucibleRecipe("Order Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 11), new ItemStack(IC2BlockRegistry.emtSolars, 1, 2), CraftingAspects.orderSolars);
|
||||
|
||||
fireSolar = ThaumcraftApi.addCrucibleRecipe("Fire Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 12), new ItemStack(IC2BlockRegistry.emtSolars, 1, 0), CraftingAspects.fireSolars);
|
||||
|
||||
doubleFireSolar = ThaumcraftApi.addCrucibleRecipe("Fire Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 13), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), CraftingAspects.fireSolars);
|
||||
|
||||
tripleFireSolar = ThaumcraftApi.addCrucibleRecipe("Fire Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 14), new ItemStack(IC2BlockRegistry.emtSolars, 1, 2), CraftingAspects.fireSolars);
|
||||
|
||||
airSolar = ThaumcraftApi.addCrucibleRecipe("Air Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars, 1, 15), new ItemStack(IC2BlockRegistry.emtSolars, 1, 0), CraftingAspects.airSolars);
|
||||
|
||||
doubleAirSolar = ThaumcraftApi.addCrucibleRecipe("Air Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars2, 1, 0), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), CraftingAspects.airSolars);
|
||||
|
||||
tripleAirSolar = ThaumcraftApi.addCrucibleRecipe("Air Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars2, 1, 1), new ItemStack(IC2BlockRegistry.emtSolars, 1, 2), CraftingAspects.airSolars);
|
||||
|
||||
earthSolar = ThaumcraftApi.addCrucibleRecipe("Earth Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars2, 1, 2), new ItemStack(IC2BlockRegistry.emtSolars, 1, 0), CraftingAspects.earthSolars);
|
||||
|
||||
doubleEarthSolar = ThaumcraftApi.addCrucibleRecipe("Earth Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars2, 1, 3), new ItemStack(IC2BlockRegistry.emtSolars, 1, 1), CraftingAspects.earthSolars);
|
||||
|
||||
tripleEarthSolar = ThaumcraftApi.addCrucibleRecipe("Earth Infused Solar Panels", new ItemStack(IC2BlockRegistry.emtSolars2, 1, 4), new ItemStack(IC2BlockRegistry.emtSolars, 1, 2), CraftingAspects.earthSolars);
|
||||
|
||||
portableNode = ThaumcraftApi.addCrucibleRecipe("Portable Node", new ItemStack(BaseBlockRegistry.portableNode), new ItemStack(ConfigItems.itemJarFilled), CraftingAspects.portableNode);
|
||||
|
||||
/** IC2 Stuff related recipes **/
|
||||
|
||||
/* Ore Clusters Macerator Recipes */
|
||||
ItemStack ironClusterRecipe = IC2Items.getItem("smallIronDust").copy();
|
||||
ironClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 16)), null, ironClusterRecipe);
|
||||
|
||||
ItemStack goldClusterRecipe = IC2Items.getItem("smallGoldDust").copy();
|
||||
goldClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 31)), null, goldClusterRecipe);
|
||||
|
||||
ItemStack copperClusterRecipe = IC2Items.getItem("smallCopperDust").copy();
|
||||
copperClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 17)), null, copperClusterRecipe);
|
||||
|
||||
ItemStack tinClusterRecipe = IC2Items.getItem("smallTinDust").copy();
|
||||
tinClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 18)), null, tinClusterRecipe);
|
||||
|
||||
ItemStack silverClusterRecipe = IC2Items.getItem("smallSilverDust").copy();
|
||||
silverClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 19)), null, silverClusterRecipe);
|
||||
|
||||
ItemStack leadClusterRecipe = IC2Items.getItem("smallLeadDust").copy();
|
||||
leadClusterRecipe.stackSize = 22;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemNugget, 1, 20)), null, leadClusterRecipe);
|
||||
|
||||
/* Thaumium Plates Recipes */
|
||||
thaumiumPlate = GameRegistry.addShapedRecipe(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5), "X", "Y", "Z", 'Y', new ItemStack(ConfigItems.itemResource, 1, 2), 'X', new ItemStack(IC2Items.getItem("ForgeHammer").getItem(), 1, OreDictionary.WILDCARD_VALUE), 'Z', new ItemStack(Blocks.obsidian));
|
||||
Recipes.metalformerRolling.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigItems.itemResource, 1, 2)), null, new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 5));
|
||||
|
||||
/* Iron Sheet Recipe */
|
||||
Recipes.metalformerRolling.addRecipe(new RecipeInputItemStack(IC2Items.getItem("denseplateiron")), null, new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 13));
|
||||
|
||||
/* Ore Processing for Amber and Cinnabar */
|
||||
if (ConfigHandler.removeAmberAndCinnabarMacerating) {
|
||||
for (Iterator<IRecipeInput> it = Recipes.macerator.getRecipes().keySet().iterator(); it.hasNext(); ) {
|
||||
IRecipeInput input = it.next();
|
||||
if (input.matches(new ItemStack(ConfigBlocks.blockCustomOre, 1, 7))) {
|
||||
it.remove();
|
||||
ElectroMagicTools.logger.info(TextHelper.localize("console.EMT.recipes.amberConflict"));
|
||||
}
|
||||
}
|
||||
|
||||
for (Iterator<IRecipeInput> it = Recipes.macerator.getRecipes().keySet().iterator(); it.hasNext(); ) {
|
||||
IRecipeInput input = it.next();
|
||||
if (input.matches(new ItemStack(ConfigBlocks.blockCustomOre, 1, 0))) {
|
||||
it.remove();
|
||||
ElectroMagicTools.logger.info(TextHelper.localize("console.EMT.recipes.cinnabarConflict"));
|
||||
}
|
||||
}
|
||||
}
|
||||
ItemStack crushedAmberRecipe = new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 1);
|
||||
crushedAmberRecipe.stackSize = 2;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigBlocks.blockCustomOre, 1, 7)), null, crushedAmberRecipe);
|
||||
|
||||
ItemStack crushedCinnabarRecipe = new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 3);
|
||||
crushedCinnabarRecipe.stackSize = 2;
|
||||
Recipes.macerator.addRecipe(new RecipeInputItemStack(new ItemStack(ConfigBlocks.blockCustomOre, 1, 0)), null, crushedCinnabarRecipe);
|
||||
|
||||
NBTTagCompound waterAmount = new NBTTagCompound();
|
||||
waterAmount.setInteger("amount", 1000);
|
||||
|
||||
ItemStack smallCopperDust = IC2Items.getItem("smallCopperDust");
|
||||
smallCopperDust.stackSize = 2;
|
||||
ItemStack smallTinDust = IC2Items.getItem("smallTinDust");
|
||||
smallCopperDust.stackSize = 2;
|
||||
|
||||
Recipes.oreWashing.addRecipe(new RecipeInputItemStack(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 1)), waterAmount, new ItemStack[]{new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 2), smallCopperDust, IC2Items.getItem("stoneDust")});
|
||||
Recipes.oreWashing.addRecipe(new RecipeInputItemStack(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 3)), waterAmount, new ItemStack[]{new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 4), smallTinDust, IC2Items.getItem("stoneDust")});
|
||||
|
||||
NBTTagCompound heatAmount = new NBTTagCompound();
|
||||
heatAmount.setInteger("minHeat", 1000);
|
||||
|
||||
Recipes.centrifuge.addRecipe(new RecipeInputItemStack(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 2)), heatAmount, new ItemStack[]{IC2Items.getItem("smallCopperDust"), new ItemStack(ConfigItems.itemResource, 1, 6)});
|
||||
Recipes.centrifuge.addRecipe(new RecipeInputItemStack(new ItemStack(IC2ItemRegistry.itemEMTItems, 1, 4)), heatAmount, new ItemStack[]{IC2Items.getItem("smallTinDust"), new ItemStack(ConfigItems.itemResource, 1, 3)});
|
||||
|
||||
}
|
||||
|
||||
public static IRecipe ironOmnitool;
|
||||
public static IRecipe diamondChainsaw;
|
||||
public static IRecipe ductTape;
|
||||
public static IRecipe rubberBall;
|
||||
public static IRecipe featherMesh;
|
||||
public static IRecipe cardboard;
|
||||
public static IRecipe featherWing;
|
||||
public static IRecipe featherWings;
|
||||
public static IRecipe taintedFeathers;
|
||||
|
||||
public static InfusionRecipe uraniumToIridium;
|
||||
public static InfusionRecipe diamondToUranium;
|
||||
public static InfusionRecipe goldToDiamond;
|
||||
public static InfusionRecipe ironToGold;
|
||||
public static InfusionRecipe stoneBricksToIronOre;
|
||||
public static InfusionRecipe arcaneStoneToCopperOre;
|
||||
public static InfusionRecipe arcaneStoneBricksToTinOre;
|
||||
public static InfusionRecipe amberBlockToLeadOre;
|
||||
public static InfusionRecipe amberBricksToUraniumOre;
|
||||
public static InfusionRecipe charcoalToCoal;
|
||||
public static InfusionRecipe shardToResin;
|
||||
public static InfusionRecipe shardToRedstone;
|
||||
public static InfusionRecipe shardToLapis;
|
||||
public static InfusionRecipe glowstoneDustToBlock;
|
||||
|
||||
public static InfusionRecipe thaumiumDrill;
|
||||
public static InfusionRecipe thaumiumChainsaw;
|
||||
public static InfusionRecipe thaumicQuantumHelmet;
|
||||
public static InfusionRecipe thaumiumOmnitool;
|
||||
public static InfusionRecipe thaumicNanoHelmet;
|
||||
public static InfusionRecipe explosionFocus;
|
||||
public static InfusionRecipe shieldFocus;
|
||||
public static InfusionRecipe potentiaGenerator;
|
||||
public static InfusionRecipe streamChainsaw;
|
||||
public static InfusionRecipe rockbreakerDrill;
|
||||
public static InfusionRecipe thorHammer;
|
||||
public static InfusionRecipe superchargedThorHammer;
|
||||
public static InfusionRecipe wandRecharger;
|
||||
public static InfusionRecipe solarHelmetRevealing;
|
||||
public static InfusionRecipe electricBootsTravel;
|
||||
public static InfusionRecipe nanoBootsTravel;
|
||||
public static InfusionRecipe quantumBootsTravel;
|
||||
public static InfusionRecipe diamondOmnitoolToThaumium;
|
||||
public static InfusionRecipe etheralProcessor;
|
||||
public static InfusionRecipe tripleCompressedSolar;
|
||||
public static InfusionRecipe electricHoeGrowth;
|
||||
public static InfusionRecipe chargeFocus;
|
||||
public static InfusionRecipe wandChargeFocus;
|
||||
public static InfusionRecipe inventoryChargingRing;
|
||||
public static InfusionRecipe armorChargingRing;
|
||||
public static InfusionRecipe nanoWings;
|
||||
public static InfusionRecipe quantumWings;
|
||||
|
||||
public static ShapelessArcaneRecipe diamondOmnitool;
|
||||
public static ShapelessArcaneRecipe tinyUranium;
|
||||
public static ShapedArcaneRecipe christmasFocus;
|
||||
public static ShapedArcaneRecipe electricGoggles;
|
||||
public static ShapedArcaneRecipe shieldBlock;
|
||||
public static ShapedArcaneRecipe compressedSolar;
|
||||
public static ShapedArcaneRecipe doubleCompressedSolar;
|
||||
public static ShapedArcaneRecipe ironOmnitoolToDiamond;
|
||||
public static ShapedArcaneRecipe electricScribingTools;
|
||||
public static ShapedArcaneRecipe thaumiumWing;
|
||||
public static ShapedArcaneRecipe thaumiumWings;
|
||||
|
||||
public static CrucibleRecipe ignisGenerator;
|
||||
public static CrucibleRecipe auramGenerator;
|
||||
public static CrucibleRecipe arborGenerator;
|
||||
public static CrucibleRecipe aerGenerator;
|
||||
public static CrucibleRecipe waterSolar;
|
||||
public static CrucibleRecipe doubleWaterSolar;
|
||||
public static CrucibleRecipe tripleWaterSolar;
|
||||
public static CrucibleRecipe darkSolar;
|
||||
public static CrucibleRecipe doubleDarkSolar;
|
||||
public static CrucibleRecipe tripleDarkSolar;
|
||||
public static CrucibleRecipe orderSolar;
|
||||
public static CrucibleRecipe doubleOrderSolar;
|
||||
public static CrucibleRecipe tripleOrderSolar;
|
||||
public static CrucibleRecipe fireSolar;
|
||||
public static CrucibleRecipe doubleFireSolar;
|
||||
public static CrucibleRecipe tripleFireSolar;
|
||||
public static CrucibleRecipe airSolar;
|
||||
public static CrucibleRecipe doubleAirSolar;
|
||||
public static CrucibleRecipe tripleAirSolar;
|
||||
public static CrucibleRecipe earthSolar;
|
||||
public static CrucibleRecipe doubleEarthSolar;
|
||||
public static CrucibleRecipe tripleEarthSolar;
|
||||
public static CrucibleRecipe portableNode;
|
||||
|
||||
public static IRecipe thaumiumPlate;
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
package tombenpotter.emt.common.modules.ic2.blocks;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
|
||||
public class BlockIC2 extends Block {
|
||||
|
||||
public BlockIC2(String unlocName, Material material, String textureName, SoundType soundType, float hardness) {
|
||||
super(material);
|
||||
|
||||
setBlockName(ModInformation.modid + ".module.ic2." + unlocName);
|
||||
setBlockTextureName(ModInformation.texturePath + ":" + textureName);
|
||||
setCreativeTab(ElectroMagicTools.tabEMT);
|
||||
setStepSound(soundType);
|
||||
setHardness(hardness);
|
||||
}
|
||||
|
||||
public BlockIC2(String unlocName, Material material, SoundType soundType, float hardness) {
|
||||
super(material);
|
||||
|
||||
setBlockName(ModInformation.modid + ".module.ic2." + unlocName);
|
||||
setCreativeTab(ElectroMagicTools.tabEMT);
|
||||
setStepSound(soundType);
|
||||
setHardness(hardness);
|
||||
}
|
||||
}
|
||||
@@ -1,93 +0,0 @@
|
||||
package tombenpotter.emt.common.modules.ic2.blocks;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockContainer;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.base.tile.TileEntityEMT;
|
||||
|
||||
public class BlockIC2Container extends BlockContainer {
|
||||
|
||||
public IIcon[] top = new IIcon[16];
|
||||
public IIcon[] bottom = new IIcon[16];
|
||||
public IIcon[] side = new IIcon[16];
|
||||
public IIcon[] frontOff = new IIcon[16];
|
||||
public IIcon[] frontOn = new IIcon[16];
|
||||
|
||||
public BlockIC2Container(String unlocName, Material material, Block.SoundType soundType, float hardness) {
|
||||
super(material);
|
||||
|
||||
setBlockName(ModInformation.modid + ".module.ic2." + unlocName);
|
||||
setCreativeTab(ElectroMagicTools.tabEMT);
|
||||
setStepSound(soundType);
|
||||
setHardness(hardness);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TileEntity createNewTileEntity(World var1, int var2) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIcon getIcon(IBlockAccess access, int x, int y, int z, int side) {
|
||||
TileEntityEMT tile = (TileEntityEMT) access.getTileEntity(x, y, z);
|
||||
int i = access.getBlockMetadata(x, y, z);
|
||||
|
||||
if (side == 0) {
|
||||
return this.bottom[i];
|
||||
} else if (side == 1) {
|
||||
return this.top[i];
|
||||
} else if (side != tile.facing) {
|
||||
return this.side[i];
|
||||
} else if (tile.isOn) {
|
||||
return this.frontOn[i];
|
||||
} else {
|
||||
return this.frontOff[i];
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
if (side < 1) {
|
||||
return this.bottom[meta];
|
||||
}
|
||||
if (side == 1) {
|
||||
return this.top[meta];
|
||||
}
|
||||
if (side == 3) {
|
||||
return this.frontOff[meta];
|
||||
}
|
||||
return this.side[meta];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entity, ItemStack itemStack) {
|
||||
int facing = MathHelper.floor_double(entity.rotationYaw * 4.0F / 360.0F + 0.5D) & 3;
|
||||
TileEntityEMT tile = (TileEntityEMT) world.getTileEntity(x, y, z);
|
||||
|
||||
if (facing == 0)
|
||||
tile.facing = 2;
|
||||
else if (facing == 1)
|
||||
tile.facing = 5;
|
||||
else if (facing == 2)
|
||||
tile.facing = 3;
|
||||
else if (facing == 3)
|
||||
tile.facing = 4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int damageDropped(int meta) {
|
||||
return meta;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package tombenpotter.emt.common.modules.ic2.entities;
|
||||
|
||||
public class IC2EntityRegistry {
|
||||
|
||||
}
|
||||
@@ -1,161 +0,0 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2014 Tombenpotter.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the terms of the GNU Public License v3.0
|
||||
* which accompanies this distribution, and is available at http://www.gnu.org/licenses/gpl.html
|
||||
*
|
||||
* This class was made by Tombenpotter and is distributed as a part of the Electro-Magic Tools mod.
|
||||
* Electro-Magic Tools is a derivative work on Thaumcraft 4 (c) Azanor 2012.
|
||||
* http://www.minecraftforum.net/topic/1585216-
|
||||
******************************************************************************/
|
||||
|
||||
package tombenpotter.emt.common.modules.ic2.items;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemArmor;
|
||||
import net.minecraftforge.common.util.EnumHelper;
|
||||
import thaumcraft.api.ThaumcraftApi;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
import tombenpotter.emt.common.modules.ic2.items.armor.boots.ItemElectricBootsTraveller;
|
||||
import tombenpotter.emt.common.modules.ic2.items.armor.boots.ItemNanoBootsTraveller;
|
||||
import tombenpotter.emt.common.modules.ic2.items.armor.boots.ItemQuantumBootsTraveller;
|
||||
import tombenpotter.emt.common.modules.ic2.items.armor.goggles.ItemElectricGoggles;
|
||||
import tombenpotter.emt.common.modules.ic2.items.armor.goggles.ItemNanoGoggles;
|
||||
import tombenpotter.emt.common.modules.ic2.items.armor.goggles.ItemQuantumGoggles;
|
||||
import tombenpotter.emt.common.modules.ic2.items.armor.goggles.ItemSolarHelmetRevealing;
|
||||
import tombenpotter.emt.common.modules.ic2.items.armor.wings.ItemNanoWing;
|
||||
import tombenpotter.emt.common.modules.ic2.items.armor.wings.ItemQuantumWing;
|
||||
import tombenpotter.emt.common.modules.ic2.items.foci.ItemChargeFocus;
|
||||
import tombenpotter.emt.common.modules.ic2.items.foci.ItemWandChargingFocus;
|
||||
import tombenpotter.emt.common.modules.ic2.items.tools.ItemElectricHoeGrowth;
|
||||
import tombenpotter.emt.common.modules.ic2.items.tools.ItemElectricThorHammer;
|
||||
import tombenpotter.emt.common.modules.ic2.items.tools.chainsaws.ItemDiamondChainsaw;
|
||||
import tombenpotter.emt.common.modules.ic2.items.tools.chainsaws.ItemStreamChainsaw;
|
||||
import tombenpotter.emt.common.modules.ic2.items.tools.chainsaws.ItemThaumiumChainsaw;
|
||||
import tombenpotter.emt.common.modules.ic2.items.tools.drills.ItemRockbreakerDrill;
|
||||
import tombenpotter.emt.common.modules.ic2.items.tools.drills.ItemThaumiumDrill;
|
||||
import tombenpotter.emt.common.modules.ic2.items.tools.omnitools.ItemOmnitoolDiamond;
|
||||
import tombenpotter.emt.common.modules.ic2.items.tools.omnitools.ItemOmnitoolIron;
|
||||
import tombenpotter.emt.common.modules.ic2.items.tools.omnitools.ItemOmnitoolThaumium;
|
||||
import tombenpotter.emt.common.modules.base.items.ItemMaterials;
|
||||
import tombenpotter.emt.common.modules.base.items.armor.ItemFeatherWing;
|
||||
import tombenpotter.emt.common.modules.base.items.armor.ItemThaumiumReinforcedWing;
|
||||
import tombenpotter.emt.common.modules.base.items.foci.ItemChristmasFocus;
|
||||
import tombenpotter.emt.common.modules.base.items.foci.ItemExplosionFocus;
|
||||
import tombenpotter.emt.common.modules.base.items.foci.ItemShieldFocus;
|
||||
import tombenpotter.emt.common.modules.base.items.tools.ItemThorHammer;
|
||||
import tombenpotter.emt.common.modules.base.items.tools.ItemThorHammerBroken;
|
||||
|
||||
public class IC2ItemRegistry {
|
||||
|
||||
public static Item thaumiumDrill;
|
||||
public static Item thaumiumChainsaw;
|
||||
public static Item quantumThaumicHelmet;
|
||||
public static Item diamondChainsaw;
|
||||
public static Item ironOmnitool;
|
||||
public static Item diamondOmnitool;
|
||||
public static Item thaumiumOmnitool;
|
||||
public static Item nanoThaumicHelmet;
|
||||
public static Item explosionFocus;
|
||||
public static Item christmasFocus;
|
||||
public static Item shieldFocus;
|
||||
public static Item electricGoggles;
|
||||
public static Item streamChainsaw;
|
||||
public static Item rockbreakerDrill;
|
||||
public static Item solarHelmetRevealing;
|
||||
public static Item thorHammer;
|
||||
public static Item taintedThorHammer;
|
||||
public static Item electricThorHammer;
|
||||
public static Item electricBootsTraveller;
|
||||
public static Item quantumBootsTraveller;
|
||||
public static Item nanoBootsTraveller;
|
||||
public static Item electricScribingTools;
|
||||
public static Item itemEMTItems;
|
||||
public static Item electricHoeGrowth;
|
||||
public static Item chargeFocus;
|
||||
public static Item emtBauble;
|
||||
public static Item wandChargeFocus;
|
||||
public static Item featherWing;
|
||||
public static Item thaumiumWing;
|
||||
public static Item nanoWing;
|
||||
public static Item quantumWing;
|
||||
|
||||
public static ItemArmor.ArmorMaterial featherWingMaterial = EnumHelper.addArmorMaterial("FEATEHRWiNG", 1, new int[]{2, 2, 2, 2}, 6);
|
||||
|
||||
public static void registerItems() {
|
||||
itemEMTItems = new ItemMaterials().setUnlocalizedName(ModInformation.modid + ".emtitems");
|
||||
GameRegistry.registerItem(itemEMTItems, "EMTItems");
|
||||
emtBauble = new ItemIC2Baubles().setUnlocalizedName(ModInformation.modid + ".emtbauble");
|
||||
GameRegistry.registerItem(emtBauble, "EMTBaubles");
|
||||
|
||||
electricGoggles = new ItemElectricGoggles(ItemArmor.ArmorMaterial.IRON, 3, 0).setUnlocalizedName(ModInformation.modid + ".goggles.electric");
|
||||
GameRegistry.registerItem(electricGoggles, "ElectricGogglesRevealing");
|
||||
nanoThaumicHelmet = new ItemNanoGoggles(ItemArmor.ArmorMaterial.DIAMOND, 3, 0).setUnlocalizedName(ModInformation.modid + ".goggles.nano");
|
||||
GameRegistry.registerItem(nanoThaumicHelmet, "NanosuitGogglesRevealing");
|
||||
quantumThaumicHelmet = new ItemQuantumGoggles(ItemArmor.ArmorMaterial.DIAMOND, 3, 0).setUnlocalizedName(ModInformation.modid + ".goggles.quantum");
|
||||
GameRegistry.registerItem(quantumThaumicHelmet, "QuantumGogglesRevealing");
|
||||
solarHelmetRevealing = new ItemSolarHelmetRevealing(ItemArmor.ArmorMaterial.DIAMOND, 3, 0).setUnlocalizedName(ModInformation.modid + ".goggles.solar");
|
||||
GameRegistry.registerItem(solarHelmetRevealing, "SolarHelmetRevealing");
|
||||
|
||||
electricBootsTraveller = new ItemElectricBootsTraveller(3, 3).setUnlocalizedName(ModInformation.modid + ".boots.traveller.electric");
|
||||
GameRegistry.registerItem(electricBootsTraveller, "ElectricBootsTraveller");
|
||||
nanoBootsTraveller = new ItemNanoBootsTraveller(3, 3).setUnlocalizedName(ModInformation.modid + ".boots.traveller.nano");
|
||||
GameRegistry.registerItem(nanoBootsTraveller, "NanoBootsTraveller");
|
||||
quantumBootsTraveller = new ItemQuantumBootsTraveller(3, 3).setUnlocalizedName(ModInformation.modid + ".boots.traveller.quantum");
|
||||
GameRegistry.registerItem(quantumBootsTraveller, "QuantumBootsTraveller");
|
||||
|
||||
electricScribingTools = new ItemElectricScribingTools().setUnlocalizedName(ModInformation.modid + ".scribingtools.electric");
|
||||
GameRegistry.registerItem(electricScribingTools, "ElectricScribingTools");
|
||||
|
||||
featherWing = new ItemFeatherWing(featherWingMaterial, 7, 1).setUnlocalizedName(ModInformation.modid + ".wing.feather");
|
||||
GameRegistry.registerItem(featherWing, "FeatherWing");
|
||||
thaumiumWing = new ItemThaumiumReinforcedWing(ThaumcraftApi.armorMatThaumium, 7, 1).setUnlocalizedName(ModInformation.modid + ".wing.thaumium");
|
||||
GameRegistry.registerItem(thaumiumWing, "ThaumiumWing");
|
||||
nanoWing = new ItemNanoWing(ItemArmor.ArmorMaterial.DIAMOND, 7, 1).setUnlocalizedName(ModInformation.modid + ".wing.nano");
|
||||
GameRegistry.registerItem(nanoWing, "NanosuitWing");
|
||||
quantumWing = new ItemQuantumWing(ItemArmor.ArmorMaterial.DIAMOND, 7, 1).setUnlocalizedName(ModInformation.modid + ".wing.quantum");
|
||||
GameRegistry.registerItem(quantumWing, "QuantumWing");
|
||||
|
||||
thorHammer = new ItemThorHammer().setUnlocalizedName(ModInformation.modid + ".hammer");
|
||||
GameRegistry.registerItem(thorHammer, "Mjolnir");
|
||||
taintedThorHammer = new ItemThorHammerBroken().setUnlocalizedName(ModInformation.modid + ".hammer.broken");
|
||||
GameRegistry.registerItem(taintedThorHammer, "TaintedMjolnir");
|
||||
electricThorHammer = new ItemElectricThorHammer().setUnlocalizedName(ModInformation.modid + ".hammer.electric");
|
||||
GameRegistry.registerItem(electricThorHammer, "SuperchargedMjolnir");
|
||||
|
||||
thaumiumDrill = new ItemThaumiumDrill().setUnlocalizedName(ModInformation.modid + ".drill.thaumium");
|
||||
GameRegistry.registerItem(thaumiumDrill, "ThaumiumDrill");
|
||||
|
||||
diamondChainsaw = new ItemDiamondChainsaw().setUnlocalizedName(ModInformation.modid + ".chainsaw.diamond");
|
||||
GameRegistry.registerItem(diamondChainsaw, "DiamondChainsaw");
|
||||
thaumiumChainsaw = new ItemThaumiumChainsaw().setUnlocalizedName(ModInformation.modid + ".chainsaw.thaumium");
|
||||
GameRegistry.registerItem(thaumiumChainsaw, "ThaumiumChainsaw");
|
||||
|
||||
ironOmnitool = new ItemOmnitoolIron().setUnlocalizedName(ModInformation.modid + ".omnitool.iron");
|
||||
GameRegistry.registerItem(ironOmnitool, "Omnitool");
|
||||
diamondOmnitool = new ItemOmnitoolDiamond().setUnlocalizedName(ModInformation.modid + ".omnitool.diamond");
|
||||
GameRegistry.registerItem(diamondOmnitool, "Diamond Omnitool");
|
||||
thaumiumOmnitool = new ItemOmnitoolThaumium().setUnlocalizedName(ModInformation.modid + ".omnitool.thaumium");
|
||||
GameRegistry.registerItem(thaumiumOmnitool, "ThaumiumOmnitool");
|
||||
|
||||
streamChainsaw = new ItemStreamChainsaw().setUnlocalizedName(ModInformation.modid + ".chainsaw.stream");
|
||||
GameRegistry.registerItem(streamChainsaw, "ChainsawStream");
|
||||
rockbreakerDrill = new ItemRockbreakerDrill().setUnlocalizedName(ModInformation.modid + ".drill.rockbreaker");
|
||||
GameRegistry.registerItem(rockbreakerDrill, "DrillRockbreaker");
|
||||
electricHoeGrowth = new ItemElectricHoeGrowth().setUnlocalizedName(ModInformation.modid + ".hoeofgrowth.electric");
|
||||
GameRegistry.registerItem(electricHoeGrowth, "ElectricHoeGrowth");
|
||||
|
||||
explosionFocus = new ItemExplosionFocus();
|
||||
GameRegistry.registerItem(explosionFocus, "ExplosionFocus");
|
||||
christmasFocus = new ItemChristmasFocus();
|
||||
GameRegistry.registerItem(christmasFocus, "ChristmasFocus");
|
||||
shieldFocus = new ItemShieldFocus();
|
||||
GameRegistry.registerItem(shieldFocus, "ShieldFocus");
|
||||
chargeFocus = new ItemChargeFocus();
|
||||
GameRegistry.registerItem(chargeFocus, "ChargingFocus");
|
||||
wandChargeFocus = new ItemWandChargingFocus();
|
||||
GameRegistry.registerItem(wandChargeFocus, "WandChargingFocus");
|
||||
}
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
package tombenpotter.emt.common.modules.ic2.items;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import tombenpotter.emt.ElectroMagicTools;
|
||||
import tombenpotter.emt.ModInformation;
|
||||
|
||||
public class ItemIC2 extends Item {
|
||||
|
||||
public ItemIC2(String unlocName, String textureName) {
|
||||
super();
|
||||
|
||||
setUnlocalizedName(ModInformation.modid + ".module.ic2." + unlocName);
|
||||
setTextureName(ModInformation.texturePath + ":" + textureName);
|
||||
setCreativeTab(ElectroMagicTools.tabEMT);
|
||||
}
|
||||
|
||||
public ItemIC2(String unlocName) {
|
||||
super();
|
||||
|
||||
setUnlocalizedName(ModInformation.modid + ".module.ic2." + unlocName);
|
||||
setCreativeTab(ElectroMagicTools.tabEMT);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package tombenpotter.emt.common.modules.base.tile;
|
||||
package tombenpotter.emt.common.tile;
|
||||
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.network.NetworkManager;
|
||||
Loaded 100 of 141 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user