ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/common/util/RecipeUtil.java

33 lines
1.1 KiB
Java
Raw Normal View History

package de.ellpeck.actuallyadditions.common.util;
2016-03-18 18:41:37 +01:00
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
2016-08-03 01:09:11 +02:00
import de.ellpeck.actuallyadditions.api.recipe.EmpowererRecipe;
2016-05-14 13:51:18 +02:00
import de.ellpeck.actuallyadditions.api.recipe.LensConversionRecipe;
2020-10-31 22:31:04 +01:00
import de.ellpeck.actuallyadditions.common.recipes.CrusherRecipe;
import de.ellpeck.actuallyadditions.common.util.crafting.RecipeHandler;
2016-03-18 18:41:37 +01:00
import net.minecraft.item.crafting.IRecipe;
2016-10-31 19:05:29 +01:00
2020-10-31 22:31:04 +01:00
import java.util.List;
2019-05-02 09:10:29 +02:00
public final class RecipeUtil {
2016-03-18 18:41:37 +01:00
2019-05-02 09:10:29 +02:00
public static LensConversionRecipe lastReconstructorRecipe() {
2016-05-19 20:05:12 +02:00
List<LensConversionRecipe> list = ActuallyAdditionsAPI.RECONSTRUCTOR_LENS_CONVERSION_RECIPES;
2019-05-02 09:10:29 +02:00
return list.get(list.size() - 1);
2016-03-18 18:41:37 +01:00
}
2019-05-02 09:10:29 +02:00
public static CrusherRecipe lastCrusherRecipe() {
2016-05-19 20:05:12 +02:00
List<CrusherRecipe> list = ActuallyAdditionsAPI.CRUSHER_RECIPES;
2019-05-02 09:10:29 +02:00
return list.get(list.size() - 1);
2016-03-18 18:41:37 +01:00
}
2019-05-02 09:10:29 +02:00
public static IRecipe lastIRecipe() {
2017-06-17 00:48:49 +02:00
return RecipeHandler.lastRecipe;
2016-03-18 18:41:37 +01:00
}
2016-08-03 01:09:11 +02:00
2019-05-02 09:10:29 +02:00
public static EmpowererRecipe lastEmpowererRecipe() {
2016-08-03 19:01:12 +02:00
List<EmpowererRecipe> list = ActuallyAdditionsAPI.EMPOWERER_RECIPES;
2019-05-02 09:10:29 +02:00
return list.get(list.size() - 1);
2016-08-03 19:01:12 +02:00
}
2016-03-18 18:41:37 +01:00
}