Cleanup recipe ore dict setting. #1455
This commit is contained in:
parent
453fd3856a
commit
da6016b692
7 changed files with 11 additions and 48 deletions
|
@ -30,8 +30,6 @@ import techreborn.api.recipe.BaseRecipe;
|
||||||
|
|
||||||
public class CentrifugeRecipe extends BaseRecipe {
|
public class CentrifugeRecipe extends BaseRecipe {
|
||||||
|
|
||||||
boolean useOreDic = false;
|
|
||||||
|
|
||||||
public CentrifugeRecipe(Object input1, Object input2, ItemStack output1, ItemStack output2, ItemStack output3,
|
public CentrifugeRecipe(Object input1, Object input2, ItemStack output1, ItemStack output2, ItemStack output3,
|
||||||
ItemStack output4, int tickTime, int euPerTick) {
|
ItemStack output4, int tickTime, int euPerTick) {
|
||||||
super(Reference.CENTRIFUGE_RECIPE, tickTime, euPerTick);
|
super(Reference.CENTRIFUGE_RECIPE, tickTime, euPerTick);
|
||||||
|
@ -47,12 +45,13 @@ public class CentrifugeRecipe extends BaseRecipe {
|
||||||
addOutput(output3);
|
addOutput(output3);
|
||||||
if (output4 != null)
|
if (output4 != null)
|
||||||
addOutput(output4);
|
addOutput(output4);
|
||||||
|
setOreDict(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CentrifugeRecipe(Object input1, Object input2, ItemStack output1, ItemStack output2, ItemStack output3,
|
public CentrifugeRecipe(Object input1, Object input2, ItemStack output1, ItemStack output2, ItemStack output3,
|
||||||
ItemStack output4, int tickTime, int euPerTick, boolean useOreDic) {
|
ItemStack output4, int tickTime, int euPerTick, boolean useOreDic) {
|
||||||
this(input1, input2, output1, output2, output3, output4, tickTime, euPerTick);
|
this(input1, input2, output1, output2, output3, output4, tickTime, euPerTick);
|
||||||
this.useOreDic = useOreDic;
|
setOreDict(useOreDic);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -60,8 +59,4 @@ public class CentrifugeRecipe extends BaseRecipe {
|
||||||
return "Centrifuge";
|
return "Centrifuge";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean useOreDic() {
|
|
||||||
return useOreDic;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,8 +34,6 @@ import techreborn.api.recipe.BaseRecipe;
|
||||||
*/
|
*/
|
||||||
public class DistillationTowerRecipe extends BaseRecipe {
|
public class DistillationTowerRecipe extends BaseRecipe {
|
||||||
|
|
||||||
private boolean useOreDictionary = true;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param inputCells Cells with to-be-distilled ingredient
|
* @param inputCells Cells with to-be-distilled ingredient
|
||||||
* @param input2 Additional empty cells for output products
|
* @param input2 Additional empty cells for output products
|
||||||
|
@ -66,7 +64,7 @@ public class DistillationTowerRecipe extends BaseRecipe {
|
||||||
public DistillationTowerRecipe(Object inputCells, Object input2, ItemStack output1, ItemStack output2,
|
public DistillationTowerRecipe(Object inputCells, Object input2, ItemStack output1, ItemStack output2,
|
||||||
ItemStack output3, ItemStack output4, int tickTime, int euPerTick, boolean oreDict) {
|
ItemStack output3, ItemStack output4, int tickTime, int euPerTick, boolean oreDict) {
|
||||||
this(inputCells, input2, output1, output2, output3, output4, tickTime, euPerTick);
|
this(inputCells, input2, output1, output2, output3, output4, tickTime, euPerTick);
|
||||||
this.useOreDictionary = oreDict;
|
setOreDict(oreDict);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -77,8 +75,4 @@ public class DistillationTowerRecipe extends BaseRecipe {
|
||||||
return "Distillation Tower";
|
return "Distillation Tower";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean useOreDic() {
|
|
||||||
return useOreDictionary;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,8 +30,6 @@ import techreborn.api.recipe.BaseRecipe;
|
||||||
|
|
||||||
public class ExtractorRecipe extends BaseRecipe {
|
public class ExtractorRecipe extends BaseRecipe {
|
||||||
|
|
||||||
boolean useOreDic = true;
|
|
||||||
|
|
||||||
public ExtractorRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick) {
|
public ExtractorRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick) {
|
||||||
super(Reference.EXTRACTOR_RECIPE, tickTime, euPerTick);
|
super(Reference.EXTRACTOR_RECIPE, tickTime, euPerTick);
|
||||||
if (input1 != null)
|
if (input1 != null)
|
||||||
|
@ -42,7 +40,7 @@ public class ExtractorRecipe extends BaseRecipe {
|
||||||
|
|
||||||
public ExtractorRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick, boolean useOreDic) {
|
public ExtractorRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick, boolean useOreDic) {
|
||||||
this(input1, output1, tickTime, euPerTick);
|
this(input1, output1, tickTime, euPerTick);
|
||||||
this.useOreDic = useOreDic;
|
setOreDict(useOreDic);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -50,8 +48,4 @@ public class ExtractorRecipe extends BaseRecipe {
|
||||||
return "Extractor";
|
return "Extractor";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean useOreDic() {
|
|
||||||
return useOreDic;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,6 @@ import techreborn.api.recipe.BaseRecipe;
|
||||||
|
|
||||||
public class GrinderRecipe extends BaseRecipe {
|
public class GrinderRecipe extends BaseRecipe {
|
||||||
|
|
||||||
public boolean useOreDict = true;
|
|
||||||
|
|
||||||
public GrinderRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick) {
|
public GrinderRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick) {
|
||||||
super(Reference.GRINDER_RECIPE, tickTime, euPerTick / 10); //Done to buff energy usage to be more in line with ic2
|
super(Reference.GRINDER_RECIPE, tickTime, euPerTick / 10); //Done to buff energy usage to be more in line with ic2
|
||||||
|
@ -42,18 +41,13 @@ public class GrinderRecipe extends BaseRecipe {
|
||||||
|
|
||||||
public GrinderRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick, boolean useOreDict) {
|
public GrinderRecipe(Object input1, ItemStack output1, int tickTime, int euPerTick, boolean useOreDict) {
|
||||||
super(Reference.GRINDER_RECIPE, tickTime, euPerTick / 10); //Done to buff energy usage to be more in line with ic2
|
super(Reference.GRINDER_RECIPE, tickTime, euPerTick / 10); //Done to buff energy usage to be more in line with ic2
|
||||||
this.useOreDict = useOreDict;
|
setOreDict(useOreDict);
|
||||||
if (input1 != null)
|
if (input1 != null)
|
||||||
addInput(input1);
|
addInput(input1);
|
||||||
if (output1 != null)
|
if (output1 != null)
|
||||||
addOutput(output1);
|
addOutput(output1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean useOreDic() {
|
|
||||||
return useOreDict;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getUserFreindlyName() {
|
public String getUserFreindlyName() {
|
||||||
return "Grinder";
|
return "Grinder";
|
||||||
|
|
|
@ -30,8 +30,6 @@ import techreborn.api.recipe.BaseRecipe;
|
||||||
|
|
||||||
public class IndustrialElectrolyzerRecipe extends BaseRecipe {
|
public class IndustrialElectrolyzerRecipe extends BaseRecipe {
|
||||||
|
|
||||||
private boolean useOreDictionary = true;
|
|
||||||
|
|
||||||
public IndustrialElectrolyzerRecipe(Object inputCells, Object input2, ItemStack output1, ItemStack output2,
|
public IndustrialElectrolyzerRecipe(Object inputCells, Object input2, ItemStack output1, ItemStack output2,
|
||||||
ItemStack output3, ItemStack output4, int tickTime, int euPerTick) {
|
ItemStack output3, ItemStack output4, int tickTime, int euPerTick) {
|
||||||
super(Reference.INDUSTRIAL_ELECTROLYZER_RECIPE, tickTime, euPerTick);
|
super(Reference.INDUSTRIAL_ELECTROLYZER_RECIPE, tickTime, euPerTick);
|
||||||
|
@ -52,7 +50,7 @@ public class IndustrialElectrolyzerRecipe extends BaseRecipe {
|
||||||
public IndustrialElectrolyzerRecipe(ItemStack inputCells, ItemStack input2, ItemStack output1, ItemStack output2,
|
public IndustrialElectrolyzerRecipe(ItemStack inputCells, ItemStack input2, ItemStack output1, ItemStack output2,
|
||||||
ItemStack output3, ItemStack output4, int tickTime, int euPerTick, boolean oreDict) {
|
ItemStack output3, ItemStack output4, int tickTime, int euPerTick, boolean oreDict) {
|
||||||
this(inputCells, input2, output1, output2, output3, output4, tickTime, euPerTick);
|
this(inputCells, input2, output1, output2, output3, output4, tickTime, euPerTick);
|
||||||
this.useOreDictionary = oreDict;
|
setOreDict(oreDict);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -60,8 +58,4 @@ public class IndustrialElectrolyzerRecipe extends BaseRecipe {
|
||||||
return "Industrial Electrolyzer";
|
return "Industrial Electrolyzer";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean useOreDic() {
|
|
||||||
return useOreDictionary;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,6 @@ import techreborn.api.recipe.BaseRecipe;
|
||||||
public class IndustrialGrinderRecipe extends BaseRecipe {
|
public class IndustrialGrinderRecipe extends BaseRecipe {
|
||||||
|
|
||||||
public FluidStack fluidStack;
|
public FluidStack fluidStack;
|
||||||
boolean useOreDic = true;
|
|
||||||
|
|
||||||
public IndustrialGrinderRecipe(Object input1, FluidStack fluidStack, ItemStack output1,
|
public IndustrialGrinderRecipe(Object input1, FluidStack fluidStack, ItemStack output1,
|
||||||
ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick) {
|
ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick) {
|
||||||
|
@ -48,12 +47,13 @@ public class IndustrialGrinderRecipe extends BaseRecipe {
|
||||||
if (output4 != null)
|
if (output4 != null)
|
||||||
addOutput(output4);
|
addOutput(output4);
|
||||||
this.fluidStack = fluidStack;
|
this.fluidStack = fluidStack;
|
||||||
|
setOreDict(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IndustrialGrinderRecipe(Object input1, FluidStack fluidStack, ItemStack output1,
|
public IndustrialGrinderRecipe(Object input1, FluidStack fluidStack, ItemStack output1,
|
||||||
ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick, boolean useOreDict) {
|
ItemStack output2, ItemStack output3, ItemStack output4, int tickTime, int euPerTick, boolean useOreDict) {
|
||||||
this(input1, fluidStack, output1, output2, output3, output4, tickTime, euPerTick);
|
this(input1, fluidStack, output1, output2, output3, output4, tickTime, euPerTick);
|
||||||
this.useOreDic = useOreDict;
|
setOreDict(useOreDict);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -61,8 +61,4 @@ public class IndustrialGrinderRecipe extends BaseRecipe {
|
||||||
return "IndustrialGrinder";
|
return "IndustrialGrinder";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean useOreDic() {
|
|
||||||
return useOreDic;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,6 @@ import techreborn.api.recipe.BaseRecipe;
|
||||||
public class IndustrialSawmillRecipe extends BaseRecipe {
|
public class IndustrialSawmillRecipe extends BaseRecipe {
|
||||||
|
|
||||||
public FluidStack fluidStack;
|
public FluidStack fluidStack;
|
||||||
public boolean canUseOreDict = false;
|
|
||||||
|
|
||||||
public IndustrialSawmillRecipe(ItemStack input1, FluidStack fluidStack, ItemStack output1,
|
public IndustrialSawmillRecipe(ItemStack input1, FluidStack fluidStack, ItemStack output1,
|
||||||
ItemStack output2, ItemStack output3, int tickTime, int euPerTick) {
|
ItemStack output2, ItemStack output3, int tickTime, int euPerTick) {
|
||||||
|
@ -46,6 +45,7 @@ public class IndustrialSawmillRecipe extends BaseRecipe {
|
||||||
if (output3 != null)
|
if (output3 != null)
|
||||||
addOutput(output3);
|
addOutput(output3);
|
||||||
this.fluidStack = fluidStack;
|
this.fluidStack = fluidStack;
|
||||||
|
setOreDict(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IndustrialSawmillRecipe(Object input1, FluidStack fluidStack, ItemStack output1,
|
public IndustrialSawmillRecipe(Object input1, FluidStack fluidStack, ItemStack output1,
|
||||||
|
@ -60,7 +60,7 @@ public class IndustrialSawmillRecipe extends BaseRecipe {
|
||||||
if (output3 != null)
|
if (output3 != null)
|
||||||
addOutput(output3);
|
addOutput(output3);
|
||||||
this.fluidStack = fluidStack;
|
this.fluidStack = fluidStack;
|
||||||
this.canUseOreDict = canUseOreDict;
|
setOreDict(canUseOreDict);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -68,8 +68,4 @@ public class IndustrialSawmillRecipe extends BaseRecipe {
|
||||||
return "Industrial Sawmill";
|
return "Industrial Sawmill";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean useOreDic() {
|
|
||||||
return canUseOreDict;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue