Added missing uurecipes

This commit is contained in:
Gig 2015-05-15 17:29:12 +01:00
parent fc11db09cc
commit 44abbfd79f
2 changed files with 323 additions and 4 deletions

View file

@ -113,7 +113,6 @@ public class ConfigTechReborn {
public static boolean UUrecipesFeather;
public static boolean UUrecipesInk;
public static boolean UUrecipesEnderPearl;
// TODO
public static boolean UUrecipesCoal;
public static boolean UUrecipesIronOre;
public static boolean UUrecipesIronDust;
@ -826,15 +825,180 @@ public class ConfigTechReborn {
.translateToLocal("config.techreborn.allow.uurecipesEnderPearl.tooltip"))
.getBoolean(true);
UUrecipesGunpowder = config
UUrecipesCoal = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.uurecipesGunPowder"),
.translateToLocal("config.techreborn.allow.UUrecipesCoal"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.uurecipesGunPowder.tooltip"))
.translateToLocal("config.techreborn.allow.UUrecipesCoal.tooltip"))
.getBoolean(true);
UUrecipesIronOre = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesIronOre"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesIronOre.tooltip"))
.getBoolean(true);
UUrecipesIronDust = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesIronDust"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesIronDust.tooltip"))
.getBoolean(true);
UUrecipesGoldOre = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesGoldOre"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesGoldOre.tooltip"))
.getBoolean(true);
UUrecipesGoldDust = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesGoldDust"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesGoldDust.tooltip"))
.getBoolean(true);
UUrecipesRedStone = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesRedStone"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesRedStone.tooltip"))
.getBoolean(true);
UUrecipesLapis = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesLapis"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesLapis.tooltip"))
.getBoolean(true);
UUrecipesEmeraldOre = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesEmeraldOre"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesEmeraldOre.tooltip"))
.getBoolean(true);
UUrecipesEmerald = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesEmerald"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesEmerald.tooltip"))
.getBoolean(true);
UUrecipesDiamond = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesDiamond"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesDiamond.tooltip"))
.getBoolean(true);
UUrecipesResin = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesResin"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesResin.tooltip"))
.getBoolean(true);
UUrecipesTinDust = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesTinDust"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesTinDust.tooltip"))
.getBoolean(true);
UUrecipesCopperDust = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesCopperDust"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesCopperDust.tooltip"))
.getBoolean(true);
UUrecipesLeadDust = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesLeadDust"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesLeadDust.tooltip"))
.getBoolean(true);
UUrecipesPlatinumDust = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesPlatinumDust"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesPlatinumDust.tooltip"))
.getBoolean(true);
UUrecipesTungstenDust = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesTungstenDust"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesTungstenDust.tooltip"))
.getBoolean(true);
UUrecipesTitaniumDust = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesTitaniumDust"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesTitaniumDust.tooltip"))
.getBoolean(true);
UUrecipesAluminumDust = config
.get(CATEGORY_UU,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesAluminumDust"),
true,
StatCollector
.translateToLocal("config.techreborn.allow.UUrecipesAluminumDust.tooltip"))
.getBoolean(true);
if (config.hasChanged())
config.save();
}

View file

@ -507,6 +507,7 @@ public class ModRecipes {
"UU ",
'U', ModItems.uuMatter
});
if(config.UUrecipeslilypad);
CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.waterlily, 64),
new Object[]
@ -516,6 +517,7 @@ public class ModRecipes {
" U ",
'U', ModItems.uuMatter
});
if(config.UUrecipesGunpowder);
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.gunpowder, 15),
new Object[]
@ -525,6 +527,7 @@ public class ModRecipes {
"UUU",
'U', ModItems.uuMatter
});
if(config.UUrecipesBone);
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.bone, 32),
new Object[]
@ -534,6 +537,7 @@ public class ModRecipes {
"U ",
'U', ModItems.uuMatter
});
if(config.UUrecipesFeather);
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.feather, 32),
new Object[]
@ -543,6 +547,7 @@ public class ModRecipes {
"U U",
'U', ModItems.uuMatter
});
if(config.UUrecipesInk);
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.dye, 48),
new Object[]
@ -552,6 +557,7 @@ public class ModRecipes {
" U ",
'U', ModItems.uuMatter
});
if(config.UUrecipesEnderPearl);
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.ender_pearl, 1),
new Object[]
@ -562,6 +568,155 @@ public class ModRecipes {
'U', ModItems.uuMatter
});
if(config.UUrecipesCoal);
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.coal, 5),
new Object[]
{
" U",
"U ",
" U",
'U', ModItems.uuMatter
});
if(config.UUrecipesIronOre);
CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.iron_ore, 2),
new Object[]
{
"U U",
" U ",
"U U",
'U', ModItems.uuMatter
});
if(config.UUrecipesGoldOre);
CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.gold_ore, 2),
new Object[]
{
" U ",
"UUU",
" U ",
'U', ModItems.uuMatter
});
if(config.UUrecipesRedStone);
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.redstone, 24),
new Object[]
{
" ",
" U ",
"UUU",
'U', ModItems.uuMatter
});
if(config.UUrecipesLapis);
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.dye, 9 , 4),
new Object[]
{
" U ",
" U ",
" UU",
'U', ModItems.uuMatter
});
if(config.UUrecipesEmeraldOre);
CraftingHelper.addShapedOreRecipe(new ItemStack(Blocks.emerald_ore, 1),
new Object[]
{
"UU ",
"U U",
" UU",
'U', ModItems.uuMatter
});
if(config.UUrecipesEmerald);
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.emerald, 2),
new Object[]
{
"UUU",
"UUU",
" U ",
'U', ModItems.uuMatter
});
if(config.UUrecipesDiamond);
CraftingHelper.addShapedOreRecipe(new ItemStack(Items.diamond, 1),
new Object[]
{
"UUU",
"UUU",
"UUU",
'U', ModItems.uuMatter
});
if(config.UUrecipesTinDust);
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.dusts, 10, 77),
new Object[]
{
" ",
"U U",
" U",
'U', ModItems.uuMatter
});
if(config.UUrecipesCopperDust);
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.dusts, 10, 21),
new Object[]
{
" U",
"U U",
" ",
'U', ModItems.uuMatter
});
if(config.UUrecipesLeadDust);
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.dusts, 14, 42),
new Object[]
{
"UUU",
"UUU",
"U ",
'U', ModItems.uuMatter
});
if(config.UUrecipesPlatinumDust);
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.dusts, 1, 58),
new Object[]
{
" U",
"UUU",
"UUU",
'U', ModItems.uuMatter
});
if(config.UUrecipesTungstenDust);
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.dusts, 1, 79),
new Object[]
{
"U ",
"UUU",
"UUU",
'U', ModItems.uuMatter
});
if(config.UUrecipesTitaniumDust);
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.dusts, 2, 78),
new Object[]
{
"UUU",
" U ",
" U ",
'U', ModItems.uuMatter
});
if(config.UUrecipesAluminumDust);
CraftingHelper.addShapedOreRecipe(new ItemStack(ModItems.dusts, 16, 2),
new Object[]
{
" U ",
" U ",
"UUU",
'U', ModItems.uuMatter
});
if(config.HideUuRecipes);
hideUUrecipes();