Skip to content

Commit

Permalink
feat: set recipes to return isSpecial -> true to avoid vanilla log wa…
Browse files Browse the repository at this point in the history
…rnings
  • Loading branch information
klikli-dev committed Jun 28, 2023
1 parent d1e409f commit e10ca84
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public CrushingRecipe(ResourceLocation id, Ingredient input, OutputIngredient ou
this.ignoreCrushingMultiplier = ignoreCrushingMultiplier;
}

@Override
public boolean isSpecial() {
return true;
}

public int getCrushingTime() {
return this.crushingTime;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public MinerRecipe(ResourceLocation id, Ingredient input, WeightedOutputIngredie
this.id = id;
}

@Override
public boolean isSpecial() {
return true;
}

public WeightedOutputIngredient getWeightedOutput() {
return this.output;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public RitualRecipe(ResourceLocation id, String group, ResourceLocation pentacle
this.command = command;
}

@Override
public boolean isSpecial() {
return true;
}

public String getCommand() {
return this.command;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ public SpiritFireRecipe(ResourceLocation id, Ingredient input, ItemStack output)
super(id, input, output);
}

@Override
public boolean isSpecial() {
return true;
}

@Override
public boolean matches(ItemStackFakeInventory inv, Level level) {
return this.input.test(inv.getItem(0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public SpiritTradeRecipe(ResourceLocation id, String group, ItemStack result, No
super(id, group, CraftingBookCategory.MISC, result, input);
}

@Override
public boolean isSpecial() {
return true;
}

@Override
public RecipeSerializer<?> getSerializer() {
return SERIALIZER;
Expand Down

0 comments on commit e10ca84

Please sign in to comment.