diff options
| author | Unknown <shekwancheung0528@gmail.com> | 2019-03-14 22:21:10 +0800 |
|---|---|---|
| committer | Unknown <shekwancheung0528@gmail.com> | 2019-03-14 22:21:10 +0800 |
| commit | b004addc44b1fff0fd83cf998aa618443e4e37ca (patch) | |
| tree | 0b98fee9066349a97c825dfd8fe96a5cb025ba8d /src/main/java/net/minecraft/recipe/REIPotionRecipeUtils.java | |
| parent | d0f4d495957d2454bdf43a64d31a21f06849e677 (diff) | |
| download | RoughlyEnoughItems-b004addc44b1fff0fd83cf998aa618443e4e37ca.tar.gz RoughlyEnoughItems-b004addc44b1fff0fd83cf998aa618443e4e37ca.tar.bz2 RoughlyEnoughItems-b004addc44b1fff0fd83cf998aa618443e4e37ca.zip | |
Update to 19w11a
Diffstat (limited to 'src/main/java/net/minecraft/recipe/REIPotionRecipeUtils.java')
| -rw-r--r-- | src/main/java/net/minecraft/recipe/REIPotionRecipeUtils.java | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/main/java/net/minecraft/recipe/REIPotionRecipeUtils.java b/src/main/java/net/minecraft/recipe/REIPotionRecipeUtils.java deleted file mode 100644 index cc3bc6508..000000000 --- a/src/main/java/net/minecraft/recipe/REIPotionRecipeUtils.java +++ /dev/null @@ -1,36 +0,0 @@ -package net.minecraft.recipe; - -import com.google.common.collect.Lists; -import me.shedaniel.cloth.api.ReflectionUtils; -import net.minecraft.item.Item; -import net.minecraft.potion.Potion; - -import java.util.List; - -public class REIPotionRecipeUtils { - - public static Object getInputFromRecipe(BrewingRecipeRegistry.Recipe o) throws Throwable { - return ReflectionUtils.getField(o, Object.class, 0).orElseThrow(ReflectionUtils.ReflectionException::new); - } - - public static Object getOutputFromRecipe(Object o) throws Throwable { - return ReflectionUtils.getField(o, Object.class, 2).orElseThrow(ReflectionUtils.ReflectionException::new); - } - - public static Ingredient getIngredientFromRecipe(Object o) throws Throwable { - return ReflectionUtils.getField(o, Ingredient.class, 1).orElseThrow(ReflectionUtils.ReflectionException::new); - } - - public static List<BrewingRecipeRegistry.Recipe<Item>> getItemRecipes() { - return ReflectionUtils.getStaticField(BrewingRecipeRegistry.class, List.class, 1).orElse(Lists.newArrayList()); - } - - public static List<BrewingRecipeRegistry.Recipe<Potion>> getPotionRecipes() { - return ReflectionUtils.getStaticField(BrewingRecipeRegistry.class, List.class, 0).orElse(Lists.newArrayList()); - } - - public static List<Ingredient> getPotionTypes() { - return ReflectionUtils.getStaticField(BrewingRecipeRegistry.class, List.class, 2).orElse(Lists.newArrayList()); - } - -} |
