Updated API reference for recipes.
This commit is contained in:
parent
4a369d0ee7
commit
111ee7630a
60 changed files with 76 additions and 156 deletions
src/main/java/techreborn/tiles
TileAssemblingMachine.javaTileChemicalReactor.javaTileIndustrialCentrifuge.javaTileIndustrialElectrolyzer.javaTileIronAlloyFurnace.java
cable
multiblock
TileDistillationTower.javaTileImplosionCompressor.javaTileIndustrialBlastFurnace.javaTileIndustrialGrinder.javaTileIndustrialSawmill.javaTileVacuumFreezer.java
teir1
|
@ -65,7 +65,7 @@ public class TileAssemblingMachine extends TilePowerAcceptor
|
|||
inputs[1] = 1;
|
||||
final int[] outputs = new int[1];
|
||||
outputs[0] = 2;
|
||||
this.crafter = new RecipeCrafter(Reference.assemblingMachineRecipe, this, 2, 2, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.ASSEMBLING_MACHINE_RECIPE, this, 2, 2, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -63,7 +63,7 @@ public class TileChemicalReactor extends TilePowerAcceptor
|
|||
inputs[1] = 1;
|
||||
final int[] outputs = new int[1];
|
||||
outputs[0] = 2;
|
||||
this.crafter = new RecipeCrafter(Reference.chemicalReactorRecipe, this, 2, 2, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.CHEMICAL_REACTOR_RECIPE, this, 2, 2, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -71,7 +71,7 @@ public class TileIndustrialCentrifuge extends TilePowerAcceptor
|
|||
outputs[2] = 4;
|
||||
outputs[3] = 5;
|
||||
|
||||
this.crafter = new RecipeCrafter(Reference.centrifugeRecipe, this, 2, 4, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.CENTRIFUGE_RECIPE, this, 2, 4, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -72,7 +72,7 @@ public class TileIndustrialElectrolyzer extends TilePowerAcceptor
|
|||
outputs[1] = 3;
|
||||
outputs[2] = 4;
|
||||
outputs[3] = 5;
|
||||
this.crafter = new RecipeCrafter(Reference.industrialElectrolyzerRecipe, this, 2, 4, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.INDUSTRIAL_ELECTROLYZER_RECIPE, this, 2, 4, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -198,7 +198,7 @@ public class TileIronAlloyFurnace extends TileLegacyMachineBase
|
|||
return false;
|
||||
} else {
|
||||
ItemStack itemstack = null;
|
||||
for (final IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.alloySmelterRecipe)) {
|
||||
for (final IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.ALLOY_SMELTER_RECIPE)) {
|
||||
if (this.hasAllInputs(recipeType)) {
|
||||
itemstack = recipeType.getOutput(0);
|
||||
break;
|
||||
|
@ -230,7 +230,7 @@ public class TileIronAlloyFurnace extends TileLegacyMachineBase
|
|||
public void smeltItem() {
|
||||
if (this.canSmelt()) {
|
||||
ItemStack itemstack = ItemStack.EMPTY;
|
||||
for (final IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.alloySmelterRecipe)) {
|
||||
for (final IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.ALLOY_SMELTER_RECIPE)) {
|
||||
if (this.hasAllInputs(recipeType)) {
|
||||
itemstack = recipeType.getOutput(0);
|
||||
break;
|
||||
|
@ -246,7 +246,7 @@ public class TileIronAlloyFurnace extends TileLegacyMachineBase
|
|||
this.decrStackSize(this.output, -itemstack.getCount());
|
||||
}
|
||||
|
||||
for (final IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.alloySmelterRecipe)) {
|
||||
for (final IBaseRecipeType recipeType : RecipeHandler.getRecipeClassFromName(Reference.ALLOY_SMELTER_RECIPE)) {
|
||||
boolean hasAllRecipes = true;
|
||||
if (this.hasAllInputs(recipeType)) {
|
||||
|
||||
|
|
|
@ -49,6 +49,7 @@ import java.util.List;
|
|||
/**
|
||||
* Created by modmuss50 on 19/05/2017.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public class TileCable extends TileEntity implements ITickable, IEnergyStorage, IListInfoProvider {
|
||||
public int power = 0;
|
||||
private int transferRate = 0;
|
||||
|
@ -233,7 +234,6 @@ public class TileCable extends TileEntity implements ITickable, IEnergyStorage,
|
|||
return compound;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void addInfo(List<String> info, boolean isRealTile) {
|
||||
if (isRealTile) {
|
||||
|
|
|
@ -64,7 +64,7 @@ public class TileDistillationTower extends TilePowerAcceptor
|
|||
super();
|
||||
final int[] inputs = new int[] { 0, 1 };
|
||||
final int[] outputs = new int[] { 2, 3, 4, 5 };
|
||||
this.crafter = new RecipeCrafter(Reference.distillationTowerRecipe, this, 2, 4, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.DISTILLATION_TOWER_RECIPE, this, 2, 4, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
public boolean getMutliBlock() {
|
||||
|
|
|
@ -61,7 +61,7 @@ public class TileImplosionCompressor extends TilePowerAcceptor
|
|||
super();
|
||||
final int[] inputs = new int[] { 0, 1 };
|
||||
final int[] outputs = new int[] { 2, 3 };
|
||||
this.crafter = new RecipeCrafter(Reference.implosionCompressorRecipe, this, 2, 2, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.IMPLOSION_COMPRESSOR_RECIPE, this, 2, 2, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -74,7 +74,7 @@ public class TileIndustrialBlastFurnace extends TilePowerAcceptor implements ITo
|
|||
this.inventory = new Inventory(5, "TileIndustrialBlastFurnace", 64, this);
|
||||
final int[] inputs = new int[] { 0, 1 };
|
||||
final int[] outputs = new int[] { 2, 3 };
|
||||
this.crafter = new RecipeCrafter(Reference.blastFurnaceRecipe, this, 2, 2, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.BLAST_FURNACE_RECIPE, this, 2, 2, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
public boolean getMutliBlock() {
|
||||
|
|
|
@ -79,7 +79,7 @@ public class TileIndustrialGrinder extends TilePowerAcceptor implements IToolDro
|
|||
this.ticksSinceLastChange = 0;
|
||||
final int[] inputs = new int[] { 0, 1 };
|
||||
final int[] outputs = new int[] {2, 3, 4, 5};
|
||||
this.crafter = new RecipeCrafter(Reference.industrialGrinderRecipe, this, 1, 4, this.inventory, inputs,
|
||||
this.crafter = new RecipeCrafter(Reference.INDUSTRIAL_GRINDER_RECIPE, this, 1, 4, this.inventory, inputs,
|
||||
outputs);
|
||||
}
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ public class TileIndustrialSawmill extends TilePowerAcceptor implements IToolDro
|
|||
this.ticksSinceLastChange = 0;
|
||||
final int[] inputs = new int[] { 0, 1 };
|
||||
final int[] outputs = new int[] { 2, 3, 4 };
|
||||
this.crafter = new RecipeCrafter(Reference.industrialSawmillRecipe, this, 1, 3, this.inventory, inputs,
|
||||
this.crafter = new RecipeCrafter(Reference.INDUSTRIAL_SAWMILL_RECIPE, this, 1, 3, this.inventory, inputs,
|
||||
outputs);
|
||||
}
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public class TileVacuumFreezer extends TilePowerAcceptor
|
|||
super();
|
||||
final int[] inputs = new int[] { 0 };
|
||||
final int[] outputs = new int[] { 1 };
|
||||
this.crafter = new RecipeCrafter(Reference.vacuumFreezerRecipe, this, 2, 1, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.VACUUM_FREEZER_RECIPE, this, 2, 1, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -69,7 +69,7 @@ public class TileAlloySmelter extends TilePowerAcceptor
|
|||
inputs[1] = 1;
|
||||
final int[] outputs = new int[1];
|
||||
outputs[0] = 2;
|
||||
this.crafter = new RecipeCrafter(Reference.alloySmelterRecipe, this, 2, 1, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.ALLOY_SMELTER_RECIPE, this, 2, 1, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -51,7 +51,7 @@ public class TileCompressor extends TilePowerAcceptor implements IToolDrop, IInv
|
|||
super();
|
||||
final int[] inputs = new int[] { 0 };
|
||||
final int[] outputs = new int[] { 1 };
|
||||
this.crafter = new RecipeCrafter(Reference.compressorRecipe, this, 2, 1, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.COMPRESSOR_RECIPE, this, 2, 1, this.inventory, inputs, outputs);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ public class TileExtractor extends TilePowerAcceptor
|
|||
inputs[0] = 0;
|
||||
final int[] outputs = new int[1];
|
||||
outputs[0] = 1;
|
||||
this.crafter = new RecipeCrafter(Reference.extractorRecipe, this, 2, 1, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.EXTRACTOR_RECIPE, this, 2, 1, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -55,7 +55,7 @@ public class TileGrinder extends TilePowerAcceptor
|
|||
inputs[0] = 0;
|
||||
final int[] outputs = new int[1];
|
||||
outputs[0] = 1;
|
||||
this.crafter = new RecipeCrafter(Reference.grinderRecipe, this, 2, 1, this.inventory, inputs, outputs);
|
||||
this.crafter = new RecipeCrafter(Reference.GRINDER_RECIPE, this, 2, 1, this.inventory, inputs, outputs);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue