Merged all ingredients into single class
This commit is contained in:
parent
0b1733b733
commit
33b9f697dc
40 changed files with 258 additions and 1072 deletions
|
@ -24,12 +24,10 @@
|
|||
|
||||
package techreborn.api.fluidreplicator;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import techreborn.init.ModItems;
|
||||
import techreborn.init.ModParts;
|
||||
import techreborn.init.TRIngredients;
|
||||
import techreborn.tiles.multiblock.TileFluidReplicator;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
@ -99,7 +97,7 @@ public class FluidReplicatorRecipe implements Cloneable {
|
|||
|
||||
public List<Object> getInputs() {
|
||||
ArrayList<Object> inputs = new ArrayList<>();
|
||||
inputs.add(ModParts.UU_MATTER.getStack(input));
|
||||
inputs.add(TRIngredients.Parts.UU_MATTER.getStack(input));
|
||||
return inputs;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,8 +32,7 @@ import reborncore.common.recipes.RecipeCrafter;
|
|||
import reborncore.common.util.Inventory;
|
||||
import reborncore.common.util.Tank;
|
||||
import techreborn.api.Reference;
|
||||
import techreborn.init.ModItems;
|
||||
import techreborn.init.ModParts;
|
||||
import techreborn.init.TRIngredients;
|
||||
import techreborn.tiles.multiblock.TileFluidReplicator;
|
||||
|
||||
/**
|
||||
|
@ -65,7 +64,7 @@ public class FluidReplicatorRecipeCrafter extends RecipeCrafter {
|
|||
return false;
|
||||
}
|
||||
ItemStack inputStack = inventory.getStackInSlot(inputSlots[0]);
|
||||
if (!inputStack.isItemEqual(ModParts.UU_MATTER.getStack())) {
|
||||
if (!inputStack.isItemEqual(TRIngredients.Parts.UU_MATTER.getStack())) {
|
||||
return false;
|
||||
}
|
||||
if (inputStack.getCount() < recipe.getInput()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue