mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
The return of achievements
- Re-added achievements - Organised all imports (seemed all over the place) - Formatted all code (seemed very combined, used the TinkerStyle)
This commit is contained in:
1 parent
ae2d8d6e4d
commit
80efde613a
419 files changed
+2406
-4144
No files matched your search
@@ -1,11 +1,10 @@
|
||||
package tconstruct.plugins.te4;
|
||||
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
|
||||
/**
|
||||
* Taken from CoFHLib
|
||||
*
|
||||
@@ -14,9 +13,11 @@ import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
public class TE4Helper
|
||||
{
|
||||
|
||||
public static void addFurnaceRecipe(int energy, ItemStack input, ItemStack output) {
|
||||
public static void addFurnaceRecipe (int energy, ItemStack input, ItemStack output)
|
||||
{
|
||||
|
||||
if (input == null || output == null) {
|
||||
if (input == null || output == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
@@ -30,19 +31,23 @@ public class TE4Helper
|
||||
FMLInterModComms.sendMessage("ThermalExpansion", "FurnaceRecipe", toSend);
|
||||
}
|
||||
|
||||
public static void addPulverizerRecipe(int energy, ItemStack input, ItemStack primaryOutput) {
|
||||
public static void addPulverizerRecipe (int energy, ItemStack input, ItemStack primaryOutput)
|
||||
{
|
||||
|
||||
addPulverizerRecipe(energy, input, primaryOutput, null, 0);
|
||||
}
|
||||
|
||||
public static void addPulverizerRecipe(int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput) {
|
||||
public static void addPulverizerRecipe (int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput)
|
||||
{
|
||||
|
||||
addPulverizerRecipe(energy, input, primaryOutput, secondaryOutput, 100);
|
||||
}
|
||||
|
||||
public static void addPulverizerRecipe(int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput, int secondaryChance) {
|
||||
public static void addPulverizerRecipe (int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput, int secondaryChance)
|
||||
{
|
||||
|
||||
if (input == null || primaryOutput == null || secondaryOutput == null) {
|
||||
if (input == null || primaryOutput == null || secondaryOutput == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
@@ -60,19 +65,23 @@ public class TE4Helper
|
||||
FMLInterModComms.sendMessage("ThermalExpansion", "PulverizerRecipe", toSend);
|
||||
}
|
||||
|
||||
public static void addSawmillRecipe(int energy, ItemStack input, ItemStack primaryOutput) {
|
||||
public static void addSawmillRecipe (int energy, ItemStack input, ItemStack primaryOutput)
|
||||
{
|
||||
|
||||
addSawmillRecipe(energy, input, primaryOutput, null, 0);
|
||||
}
|
||||
|
||||
public static void addSawmillRecipe(int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput) {
|
||||
public static void addSawmillRecipe (int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput)
|
||||
{
|
||||
|
||||
addSawmillRecipe(energy, input, primaryOutput, secondaryOutput, 100);
|
||||
}
|
||||
|
||||
public static void addSawmillRecipe(int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput, int secondaryChance) {
|
||||
public static void addSawmillRecipe (int energy, ItemStack input, ItemStack primaryOutput, ItemStack secondaryOutput, int secondaryChance)
|
||||
{
|
||||
|
||||
if (input == null || primaryOutput == null || secondaryOutput == null) {
|
||||
if (input == null || primaryOutput == null || secondaryOutput == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
@@ -90,20 +99,23 @@ public class TE4Helper
|
||||
FMLInterModComms.sendMessage("ThermalExpansion", "SawmillRecipe", toSend);
|
||||
}
|
||||
|
||||
public static void addSmelterRecipe(int energy, ItemStack primaryInput, ItemStack secondaryInput, ItemStack primaryOutput) {
|
||||
public static void addSmelterRecipe (int energy, ItemStack primaryInput, ItemStack secondaryInput, ItemStack primaryOutput)
|
||||
{
|
||||
|
||||
addSmelterRecipe(energy, primaryInput, secondaryInput, primaryOutput, null, 0);
|
||||
}
|
||||
|
||||
public static void addSmelterRecipe(int energy, ItemStack primaryInput, ItemStack secondaryInput, ItemStack primaryOutput, ItemStack secondaryOutput) {
|
||||
public static void addSmelterRecipe (int energy, ItemStack primaryInput, ItemStack secondaryInput, ItemStack primaryOutput, ItemStack secondaryOutput)
|
||||
{
|
||||
|
||||
addSmelterRecipe(energy, primaryInput, secondaryInput, primaryOutput, secondaryOutput, 100);
|
||||
}
|
||||
|
||||
public static void addSmelterRecipe(int energy, ItemStack primaryInput, ItemStack secondaryInput, ItemStack primaryOutput, ItemStack secondaryOutput,
|
||||
int secondaryChance) {
|
||||
public static void addSmelterRecipe (int energy, ItemStack primaryInput, ItemStack secondaryInput, ItemStack primaryOutput, ItemStack secondaryOutput, int secondaryChance)
|
||||
{
|
||||
|
||||
if (primaryInput == null || secondaryInput == null || primaryOutput == null || secondaryOutput == null) {
|
||||
if (primaryInput == null || secondaryInput == null || primaryOutput == null || secondaryOutput == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
@@ -131,7 +143,8 @@ public class TE4Helper
|
||||
*
|
||||
* @param oreType
|
||||
*/
|
||||
public static void addSmelterBlastOre(String oreType) {
|
||||
public static void addSmelterBlastOre (String oreType)
|
||||
{
|
||||
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
|
||||
@@ -140,9 +153,11 @@ public class TE4Helper
|
||||
FMLInterModComms.sendMessage("ThermalExpansion", "SmelterBlastOreType", toSend);
|
||||
}
|
||||
|
||||
public static void addCrucibleRecipe(int energy, ItemStack input, FluidStack output) {
|
||||
public static void addCrucibleRecipe (int energy, ItemStack input, FluidStack output)
|
||||
{
|
||||
|
||||
if (input == null || output == null) {
|
||||
if (input == null || output == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
@@ -157,9 +172,11 @@ public class TE4Helper
|
||||
FMLInterModComms.sendMessage("ThermalExpansion", "CrucibleRecipe", toSend);
|
||||
}
|
||||
|
||||
public static void addTransposerFill(int energy, ItemStack input, ItemStack output, FluidStack fluid, boolean reversible) {
|
||||
public static void addTransposerFill (int energy, ItemStack input, ItemStack output, FluidStack fluid, boolean reversible)
|
||||
{
|
||||
|
||||
if (input == null || output == null || fluid == null) {
|
||||
if (input == null || output == null || fluid == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
@@ -177,9 +194,11 @@ public class TE4Helper
|
||||
FMLInterModComms.sendMessage("ThermalExpansion", "TransposerFillRecipe", toSend);
|
||||
}
|
||||
|
||||
public static void addTransposerExtract(int energy, ItemStack input, ItemStack output, FluidStack fluid, int chance, boolean reversible) {
|
||||
public static void addTransposerExtract (int energy, ItemStack input, ItemStack output, FluidStack fluid, int chance, boolean reversible)
|
||||
{
|
||||
|
||||
if (input == null || output == null || fluid == null) {
|
||||
if (input == null || output == null || fluid == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
@@ -198,7 +217,8 @@ public class TE4Helper
|
||||
FMLInterModComms.sendMessage("ThermalExpansion", "TransposerExtractRecipe", toSend);
|
||||
}
|
||||
|
||||
public static void addMagmaticFuel(String fluidName, int energy) {
|
||||
public static void addMagmaticFuel (String fluidName, int energy)
|
||||
{
|
||||
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
|
||||
@@ -208,7 +228,8 @@ public class TE4Helper
|
||||
FMLInterModComms.sendMessage("ThermalExpansion", "MagmaticFuel", toSend);
|
||||
}
|
||||
|
||||
public static void addCompressionFuel(String fluidName, int energy) {
|
||||
public static void addCompressionFuel (String fluidName, int energy)
|
||||
{
|
||||
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
|
||||
@@ -218,7 +239,8 @@ public class TE4Helper
|
||||
FMLInterModComms.sendMessage("ThermalExpansion", "CompressionFuel", toSend);
|
||||
}
|
||||
|
||||
public static void addReactantFuel(String fluidName, int energy) {
|
||||
public static void addReactantFuel (String fluidName, int energy)
|
||||
{
|
||||
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
|
||||
@@ -228,7 +250,8 @@ public class TE4Helper
|
||||
FMLInterModComms.sendMessage("ThermalExpansion", "ReactantFuel", toSend);
|
||||
}
|
||||
|
||||
public static void addCoolant(String fluidName, int energy) {
|
||||
public static void addCoolant (String fluidName, int energy)
|
||||
{
|
||||
|
||||
NBTTagCompound toSend = new NBTTagCompound();
|
||||
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
package tconstruct.plugins.te4;
|
||||
|
||||
import cpw.mods.fml.common.registry.*;
|
||||
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder;
|
||||
import mantle.pulsar.pulse.*;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder;
|
||||
import mantle.pulsar.pulse.Handler;
|
||||
import mantle.pulsar.pulse.Pulse;
|
||||
import net.minecraftforge.oredict.*;
|
||||
import tconstruct.TConstruct;
|
||||
import tconstruct.tools.TinkerTools;
|
||||
import tconstruct.world.TinkerWorld;
|
||||
|
||||
Reference in new issue
Block a user