mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-25 06:34:30 +00:00
ModTweaker2 Rework
- Revised base classes for IUndoableAction - Reordered lots of code, so stuck actions should be less frequent - Added wildcard support to many "remove" methods - Started working on exist & duplicate checks
This commit is contained in:
1 parent
f5034b04d8
commit
da33cc6fab
112 files changed
+4596
-3522
No files matched your search
@@ -1,14 +1,18 @@
|
||||
package modtweaker2.mods.tfcraft.handlers;
|
||||
|
||||
import static modtweaker2.helpers.StackHelper.areEqual;
|
||||
import static modtweaker2.helpers.InputHelper.toStack;
|
||||
import static com.bioxx.tfc.api.Crafting.AnvilReq.getReqFromInt;
|
||||
import static modtweaker2.helpers.InputHelper.toIItemStack;
|
||||
import static modtweaker2.helpers.InputHelper.toStack;
|
||||
import static modtweaker2.helpers.StackHelper.matches;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import minetweaker.MineTweakerAPI;
|
||||
import minetweaker.api.item.IIngredient;
|
||||
import minetweaker.api.item.IItemStack;
|
||||
import modtweaker2.helpers.InputHelper;
|
||||
import modtweaker2.helpers.LogHelper;
|
||||
import modtweaker2.mods.tfcraft.TFCHelper;
|
||||
import modtweaker2.utils.BaseListAddition;
|
||||
import modtweaker2.utils.BaseListRemoval;
|
||||
@@ -21,10 +25,15 @@ import com.bioxx.tfc.api.Crafting.AnvilRecipe;
|
||||
|
||||
@ZenClass("mods.tfcraft.Anvil")
|
||||
public class Anvil {
|
||||
|
||||
public static final String nameRegular = "TFC Anvil-Regular";
|
||||
public static final String nameWeld = "TFC Anvil-Weld";
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ZenMethod
|
||||
public static void add(IItemStack input1, IItemStack input2, String plan, int value, boolean flux, int req, IItemStack output){
|
||||
MineTweakerAPI.apply(new Add(new AnvilRecipe(toStack(input1), toStack(input2), plan, value, flux, req, toStack(output))));
|
||||
addRecipe(nameRegular, TFCHelper.anvilRecipes, new AnvilRecipe(toStack(input1), toStack(input2), plan, value, flux, req, toStack(output)));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -33,60 +42,63 @@ public class Anvil {
|
||||
*/
|
||||
@ZenMethod
|
||||
public static void addWeld(IItemStack input1, IItemStack input2, int req, IItemStack output){
|
||||
MineTweakerAPI.apply(new AddWeld(new AnvilRecipe(toStack(input1), toStack(input2), true, getReqFromInt(req), toStack(output))));
|
||||
addRecipe(nameWeld, TFCHelper.anvilWeldRecipes, new AnvilRecipe(toStack(input1), toStack(input2), true, getReqFromInt(req), toStack(output)));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IItemStack stack){
|
||||
MineTweakerAPI.apply(new Remove(toStack(stack)));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeWeld(IItemStack stack){
|
||||
MineTweakerAPI.apply(new RemoveWeld(toStack(stack)));
|
||||
}
|
||||
|
||||
private static class Add extends BaseListAddition{
|
||||
public Add(AnvilRecipe recipe) {
|
||||
super("Anvil-Regular", TFCHelper.anvilRecipes, recipe);
|
||||
}
|
||||
}
|
||||
|
||||
private static class AddWeld extends BaseListAddition{
|
||||
public AddWeld(AnvilRecipe recipe) {
|
||||
super("Anvil-Weld", TFCHelper.anvilWeldRecipes, recipe);
|
||||
}
|
||||
}
|
||||
|
||||
private static class Remove extends BaseListRemoval{
|
||||
public Remove(ItemStack out){
|
||||
super("Anvil-Remove-Regular", TFCHelper.anvilRecipes, out);
|
||||
}
|
||||
public static void addRecipe(String name, List<AnvilRecipe> list, AnvilRecipe recipe) {
|
||||
List<AnvilRecipe> recipes = new LinkedList<AnvilRecipe>();
|
||||
recipes.add(recipe);
|
||||
MineTweakerAPI.apply(new Add(name, list, recipes));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply() {
|
||||
for (AnvilRecipe recipe : AnvilManager.getInstance().getRecipeList()){
|
||||
if (recipe.getCraftingResult() != null && areEqual(recipe.getCraftingResult(), stack)){
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
super.apply();
|
||||
private static class Add extends BaseListAddition<AnvilRecipe> {
|
||||
public Add(String name, List<AnvilRecipe> list, List<AnvilRecipe> recipes) {
|
||||
super(name, list, recipes);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getRecipeInfo(AnvilRecipe recipe) {
|
||||
return InputHelper.getStackDescription(recipe.getCraftingResult());
|
||||
}
|
||||
}
|
||||
|
||||
private static class RemoveWeld extends BaseListRemoval{
|
||||
public RemoveWeld(ItemStack out){
|
||||
super("Anvil-Remove-Weld", TFCHelper.anvilWeldRecipes, out);
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IIngredient ingredient) {
|
||||
removeRecipe(nameRegular, TFCHelper.anvilRecipes, ingredient);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeWeld(IIngredient ingredient) {
|
||||
removeRecipe(nameWeld, TFCHelper.anvilWeldRecipes, ingredient);
|
||||
}
|
||||
|
||||
|
||||
public static void removeRecipe(String name, List<AnvilRecipe> list, IIngredient ingredient) {
|
||||
List<AnvilRecipe> recipes = new LinkedList<AnvilRecipe>();
|
||||
|
||||
for (AnvilRecipe recipe : AnvilManager.getInstance().getRecipeList()){
|
||||
if (recipe.getCraftingResult() != null && matches(ingredient, toIItemStack(recipe.getCraftingResult()))) {
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
|
||||
if(!recipes.isEmpty()) {
|
||||
MineTweakerAPI.apply(new Remove(name, list, recipes));
|
||||
} else {
|
||||
LogHelper.logWarning(String.format("No %s Recipes found for %s. Command ignored.", name, ingredient.toString()));
|
||||
}
|
||||
}
|
||||
|
||||
private static class Remove extends BaseListRemoval<AnvilRecipe> {
|
||||
public Remove(String name, List<AnvilRecipe> list, List<AnvilRecipe> recipes){
|
||||
super(name, list, recipes);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply() {
|
||||
for (AnvilRecipe recipe : AnvilManager.getInstance().getRecipeList()){
|
||||
if (recipe.getCraftingResult() != null && recipe.getCraftingResult() == stack){
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
super.apply();
|
||||
protected String getRecipeInfo(AnvilRecipe recipe) {
|
||||
return InputHelper.getStackDescription(recipe.getCraftingResult());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,19 +1,23 @@
|
||||
package modtweaker2.mods.tfcraft.handlers;
|
||||
|
||||
import static modtweaker2.helpers.InputHelper.toFluid;
|
||||
import static modtweaker2.helpers.InputHelper.toIItemStack;
|
||||
import static modtweaker2.helpers.InputHelper.toILiquidStack;
|
||||
import static modtweaker2.helpers.InputHelper.toStack;
|
||||
import static modtweaker2.helpers.StackHelper.areEqual;
|
||||
import static modtweaker2.helpers.StackHelper.matches;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import minetweaker.MineTweakerAPI;
|
||||
import minetweaker.api.item.IIngredient;
|
||||
import minetweaker.api.item.IItemStack;
|
||||
import minetweaker.api.liquid.ILiquidStack;
|
||||
import modtweaker2.helpers.InputHelper;
|
||||
import modtweaker2.helpers.LogHelper;
|
||||
import modtweaker2.mods.tfcraft.TFCHelper;
|
||||
import modtweaker2.utils.BaseListAddition;
|
||||
import modtweaker2.utils.BaseListRemoval;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import stanhebben.zenscript.annotations.ZenClass;
|
||||
import stanhebben.zenscript.annotations.ZenMethod;
|
||||
|
||||
@@ -23,6 +27,10 @@ import com.bioxx.tfc.api.Crafting.BarrelRecipe;
|
||||
|
||||
@ZenClass("mods.tfcraft.Barrel")
|
||||
public class Barrel {
|
||||
|
||||
public static final String name = "TFC Barrel";
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* @param outputFluid If you want this recipe consume fluid, <code>outputFluid=inputFluid</code>
|
||||
@@ -53,44 +61,63 @@ public class Barrel {
|
||||
MineTweakerAPI.apply(new AddRecipe(new BarrelLiquidToLiquidRecipe(toFluid(inputInBarrel), toFluid(input), toFluid(output))));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IItemStack output){
|
||||
MineTweakerAPI.apply(new RemoveRecipe(toStack(output)));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(ILiquidStack output){
|
||||
MineTweakerAPI.apply(new RemoveRecipe(toFluid(output)));
|
||||
}
|
||||
|
||||
private static class AddRecipe extends BaseListAddition{
|
||||
private static class AddRecipe extends BaseListAddition<BarrelRecipe> {
|
||||
public AddRecipe(BarrelRecipe recipe){
|
||||
super("Barrel", TFCHelper.barrelRecipes, recipe);
|
||||
}
|
||||
}
|
||||
|
||||
private static class RemoveRecipe extends BaseListRemoval{
|
||||
public RemoveRecipe(ItemStack stack){
|
||||
super("Barrel-Remove", TFCHelper.barrelRecipes, stack);
|
||||
super(Barrel.name, TFCHelper.barrelRecipes);
|
||||
recipes.add(recipe);
|
||||
}
|
||||
|
||||
public RemoveRecipe(FluidStack fluid){
|
||||
super("Barrel-Remove", TFCHelper.barrelRecipes, fluid);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply() {
|
||||
for (BarrelRecipe recipe : BarrelManager.getInstance().getRecipes()){
|
||||
if (recipe.getRecipeOutIS() != null && areEqual(recipe.getRecipeOutIS(), stack)){
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
for (BarrelRecipe recipe : BarrelManager.getInstance().getRecipes()){
|
||||
if (recipe.getRecipeOutFluid() != null && recipe.getRecipeOutFluid().isFluidEqual(fluid)){
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
super.apply();
|
||||
protected String getRecipeInfo(BarrelRecipe recipe) {
|
||||
if(recipe.getRecipeOutIS() != null)
|
||||
return InputHelper.getStackDescription(recipe.getRecipeOutIS());
|
||||
else if(recipe.getRecipeOutFluid() != null)
|
||||
return InputHelper.getStackDescription(recipe.getRecipeOutFluid());
|
||||
else
|
||||
return "Unknown output";
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IIngredient output){
|
||||
List<BarrelRecipe> recipes = new LinkedList<BarrelRecipe>();
|
||||
|
||||
// Test for item outputs
|
||||
for (BarrelRecipe recipe : BarrelManager.getInstance().getRecipes()){
|
||||
if (recipe.getRecipeOutIS() != null && matches(output, toIItemStack(recipe.getRecipeOutIS()))) {
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
|
||||
// Test for liquid outputs
|
||||
for (BarrelRecipe recipe : BarrelManager.getInstance().getRecipes()){
|
||||
if (recipe.getRecipeOutFluid() != null && matches(output, toILiquidStack(recipe.getRecipeOutFluid()))) {
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
|
||||
if(!recipes.isEmpty()) {
|
||||
MineTweakerAPI.apply(new RemoveRecipe(recipes));
|
||||
} else {
|
||||
LogHelper.logWarning(String.format("No %s Recipe found for %s. Command ignored!", Barrel.name, output.toString()));
|
||||
}
|
||||
}
|
||||
|
||||
private static class RemoveRecipe extends BaseListRemoval<BarrelRecipe> {
|
||||
public RemoveRecipe(List<BarrelRecipe> recipes){
|
||||
super(Barrel.name, TFCHelper.barrelRecipes, recipes);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getRecipeInfo(BarrelRecipe recipe) {
|
||||
if(recipe.getRecipeOutIS() != null)
|
||||
return InputHelper.getStackDescription(recipe.getRecipeOutIS());
|
||||
else if(recipe.getRecipeOutFluid() != null)
|
||||
return InputHelper.getStackDescription(recipe.getRecipeOutFluid());
|
||||
else
|
||||
return "Unknown output";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,16 +1,19 @@
|
||||
package modtweaker2.mods.tfcraft.handlers;
|
||||
|
||||
import static modtweaker2.helpers.InputHelper.toIItemStack;
|
||||
import static modtweaker2.helpers.InputHelper.toStack;
|
||||
import static modtweaker2.helpers.StackHelper.areEqual;
|
||||
import static modtweaker2.helpers.StackHelper.matches;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import minetweaker.MineTweakerAPI;
|
||||
import minetweaker.api.item.IIngredient;
|
||||
import minetweaker.api.item.IItemStack;
|
||||
import modtweaker2.helpers.InputHelper;
|
||||
import modtweaker2.mods.tfcraft.TFCHelper;
|
||||
import modtweaker2.utils.BaseListAddition;
|
||||
import modtweaker2.utils.BaseListRemoval;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import stanhebben.zenscript.annotations.ZenClass;
|
||||
import stanhebben.zenscript.annotations.ZenMethod;
|
||||
|
||||
@@ -19,6 +22,8 @@ import com.bioxx.tfc.api.Crafting.KilnRecipe;
|
||||
|
||||
@ZenClass("mods.tfcraft.Kiln")
|
||||
public class Kiln {
|
||||
|
||||
public static final String name = "TFC Kiln";
|
||||
|
||||
/** Deprecated, since pottery kiln will check <code>x instanceof ItemPotteryBase</code>
|
||||
* <p>If you have a such item, you might consider to use it
|
||||
@@ -29,31 +34,40 @@ public class Kiln {
|
||||
MineTweakerAPI.apply(new AddRecipe(new KilnRecipe(toStack(input), lv, toStack(output))));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IItemStack stack){
|
||||
MineTweakerAPI.apply(new RemoveRecipe(toStack(stack)));
|
||||
}
|
||||
|
||||
private static class AddRecipe extends BaseListAddition{
|
||||
private static class AddRecipe extends BaseListAddition<KilnRecipe> {
|
||||
public AddRecipe(KilnRecipe recipe) {
|
||||
super("Kiln", TFCHelper.kilnRecipes, recipe);
|
||||
super(Kiln.name, TFCHelper.kilnRecipes);
|
||||
recipes.add(recipe);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getRecipeInfo(KilnRecipe recipe) {
|
||||
return InputHelper.getStackDescription(recipe.getCraftingResult());
|
||||
}
|
||||
}
|
||||
|
||||
private static class RemoveRecipe extends BaseListRemoval{
|
||||
public RemoveRecipe(ItemStack out){
|
||||
super("Kiln-Remove", TFCHelper.kilnRecipes, out);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply() {
|
||||
for (KilnRecipe recipe : KilnCraftingManager.getInstance().getRecipeList()){
|
||||
if (recipe.getCraftingResult() != null && areEqual(recipe.getCraftingResult(), stack)){
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
super.apply();
|
||||
@ZenMethod
|
||||
public static void remove(IIngredient output){
|
||||
List<KilnRecipe> recipes = new LinkedList<KilnRecipe>();
|
||||
|
||||
for (KilnRecipe recipe : KilnCraftingManager.getInstance().getRecipeList()){
|
||||
if (recipe.getCraftingResult() != null && matches(output, toIItemStack(recipe.getCraftingResult()))) {
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
|
||||
MineTweakerAPI.apply(new RemoveRecipe(recipes));
|
||||
}
|
||||
|
||||
private static class RemoveRecipe extends BaseListRemoval<KilnRecipe> {
|
||||
public RemoveRecipe(List<KilnRecipe> recipes) {
|
||||
super(Kiln.name, TFCHelper.kilnRecipes, recipes);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getRecipeInfo(KilnRecipe recipe) {
|
||||
return InputHelper.getStackDescription(recipe.getCraftingResult());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,13 +1,16 @@
|
||||
package modtweaker2.mods.tfcraft.handlers;
|
||||
|
||||
import static modtweaker2.helpers.InputHelper.toIItemStack;
|
||||
import static modtweaker2.helpers.InputHelper.toStack;
|
||||
import static modtweaker2.helpers.StackHelper.areEqual;
|
||||
import static modtweaker2.helpers.StackHelper.matches;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import minetweaker.MineTweakerAPI;
|
||||
import minetweaker.api.item.IIngredient;
|
||||
import minetweaker.api.item.IItemStack;
|
||||
import modtweaker2.helpers.InputHelper;
|
||||
import modtweaker2.mods.tfcraft.TFCHelper;
|
||||
import modtweaker2.utils.BaseListAddition;
|
||||
import modtweaker2.utils.BaseListRemoval;
|
||||
@@ -19,39 +22,70 @@ import com.bioxx.tfc.api.Crafting.QuernRecipe;
|
||||
|
||||
@ZenClass("mods.tfcraft.Quern")
|
||||
public class Quern {
|
||||
|
||||
public static final String name = "TFC Quern";
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ZenMethod
|
||||
public static void add(IItemStack input, IItemStack output) {
|
||||
MineTweakerAPI.apply(new AddRecipe(new QuernRecipe(toStack(input), toStack(output))));
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IItemStack input){
|
||||
MineTweakerAPI.apply(new RemoveRecipe(toStack(input)));
|
||||
}
|
||||
|
||||
private static class AddRecipe extends BaseListAddition{
|
||||
private static class AddRecipe extends BaseListAddition<QuernRecipe> {
|
||||
public AddRecipe(QuernRecipe recipe) {
|
||||
super("Quern", TFCHelper.quernRecipes, recipe);
|
||||
TFCHelper.quernVaildItems.add(recipe.getInItem());
|
||||
super(Quern.name, TFCHelper.quernRecipes);
|
||||
recipes.add(recipe);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply() {
|
||||
super.apply();
|
||||
|
||||
for (QuernRecipe recipe : successful){
|
||||
TFCHelper.quernVaildItems.add(recipe.getInItem());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void undo() {
|
||||
for (QuernRecipe recipe : successful){
|
||||
TFCHelper.quernVaildItems.remove(recipe.getInItem());
|
||||
}
|
||||
|
||||
super.undo();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getRecipeInfo(QuernRecipe recipe) {
|
||||
return InputHelper.getStackDescription(recipe.getResult());
|
||||
}
|
||||
}
|
||||
|
||||
private static class RemoveRecipe extends BaseListRemoval{
|
||||
public RemoveRecipe(ItemStack stack) {
|
||||
super("Quern-Remove", TFCHelper.quernRecipes, stack);
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ZenMethod
|
||||
public static void remove(IIngredient output) {
|
||||
List<QuernRecipe> recipes = new LinkedList<QuernRecipe>();
|
||||
|
||||
for (QuernRecipe recipe : QuernManager.getInstance().getRecipes()) {
|
||||
if (recipe != null && recipe.getResult() != null && matches(output, toIItemStack(recipe.getResult()))){
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
|
||||
MineTweakerAPI.apply(new RemoveRecipe(recipes));
|
||||
}
|
||||
|
||||
private static class RemoveRecipe extends BaseListRemoval<QuernRecipe> {
|
||||
public RemoveRecipe(List<QuernRecipe> recipes) {
|
||||
super(Quern.name, TFCHelper.quernRecipes, recipes);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void apply() {
|
||||
for (QuernRecipe recipe : QuernManager.getInstance().getRecipes()){
|
||||
if (recipe.getResult() !=null && areEqual(recipe.getResult(), stack)){
|
||||
recipes.add(recipe);
|
||||
}
|
||||
}
|
||||
|
||||
for (Object aRecipe : recipes){
|
||||
TFCHelper.quernVaildItems.remove(((QuernRecipe)aRecipe).getInItem());
|
||||
for (QuernRecipe recipe : recipes) {
|
||||
TFCHelper.quernVaildItems.remove(recipe.getInItem());
|
||||
}
|
||||
|
||||
super.apply();
|
||||
@@ -59,11 +93,16 @@ public class Quern {
|
||||
|
||||
@Override
|
||||
public void undo() {
|
||||
for (Object aRecipe : recipes){
|
||||
TFCHelper.quernVaildItems.add(((QuernRecipe)aRecipe).getInItem());
|
||||
}
|
||||
|
||||
super.undo();
|
||||
|
||||
for (QuernRecipe recipe : successful){
|
||||
TFCHelper.quernVaildItems.add(recipe.getInItem());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getRecipeInfo(QuernRecipe recipe) {
|
||||
return InputHelper.getStackDescription(recipe.getResult());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user