Skip to content

Commit

Permalink
remove codes that is no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
yor42 committed Nov 18, 2024
1 parent 9c41d5e commit 47a29b7
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/main/java/cn/academy/crafting/ImagFusorRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public class ImagFusorRecipes {

private final List<IFRecipe> recipeList = new ArrayList<>();

public IFRecipe addRecipe(ItemStack consume, int liquid, ItemStack output) {
return addRecipe(new IFRecipe(consume, liquid, output));
public void addRecipe(ItemStack consume, int liquid, ItemStack output) {
addRecipe(new IFRecipe(consume, liquid, output));
}

public IFRecipe addRecipe(IFRecipe recipe) {
public void addRecipe(IFRecipe recipe) {
for(IFRecipe r : recipeList) {

if(r.consumeType == recipe.consumeType) {
Expand All @@ -34,18 +34,6 @@ public IFRecipe addRecipe(IFRecipe recipe) {
}

recipeList.add(recipe);
return recipe;
}

@Nullable
public IFRecipe removeRecipebyInput(ItemStack input) {
for(IFRecipe r : recipeList) {
if(r.matches(input)) {
recipeList.remove(r);
return r;
}
}
return null;
}

public IFRecipe getRecipe(ItemStack input) {
Expand Down

0 comments on commit 47a29b7

Please sign in to comment.