public final class ErrorUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
assertMainThread() |
static <T> void |
checkIsValidIngredient(T ingredient,
java.lang.String name) |
static void |
checkNotEmpty(java.util.Collection values,
java.lang.String name) |
static void |
checkNotEmpty(net.minecraft.item.ItemStack itemStack) |
static void |
checkNotEmpty(net.minecraft.item.ItemStack itemStack,
java.lang.String name) |
static <T> void |
checkNotEmpty(T[] values,
java.lang.String name) |
static <T> void |
checkNotNull(T object,
java.lang.String name) |
static <T> net.minecraft.crash.ReportedException |
createRenderIngredientException(java.lang.Throwable throwable,
T ingredient) |
static <T> java.lang.String |
getInfoFromRecipe(T recipe,
mezz.jei.api.recipe.category.IRecipeCategory<T> recipeCategory) |
static <T> java.util.List<java.lang.String> |
getIngredientInfo(mezz.jei.api.ingredients.IIngredientType<T> ingredientType,
java.util.List<? extends java.util.List<T>> ingredients) |
static <T> java.lang.String |
getIngredientInfo(T ingredient) |
static java.lang.String |
getItemStackInfo(net.minecraft.item.ItemStack itemStack) |
static java.lang.String |
getNameForRecipe(java.lang.Object recipe) |
static void |
setModIdHelper(mezz.jei.api.helpers.IModIdHelper modIdHelper) |
public static void setModIdHelper(mezz.jei.api.helpers.IModIdHelper modIdHelper)
public static <T> java.lang.String getInfoFromRecipe(T recipe, mezz.jei.api.recipe.category.IRecipeCategory<T> recipeCategory)
public static java.lang.String getNameForRecipe(java.lang.Object recipe)
public static <T> java.lang.String getIngredientInfo(T ingredient)
public static <T> java.util.List<java.lang.String> getIngredientInfo(mezz.jei.api.ingredients.IIngredientType<T> ingredientType, java.util.List<? extends java.util.List<T>> ingredients)
public static java.lang.String getItemStackInfo(@Nullable net.minecraft.item.ItemStack itemStack)
public static void checkNotEmpty(@Nullable net.minecraft.item.ItemStack itemStack)
public static void checkNotEmpty(@Nullable net.minecraft.item.ItemStack itemStack, java.lang.String name)
public static <T> void checkNotEmpty(@Nullable T[] values, java.lang.String name)
public static void checkNotEmpty(@Nullable java.util.Collection values, java.lang.String name)
public static <T> void checkNotNull(@Nullable T object, java.lang.String name)
public static <T> void checkIsValidIngredient(@Nullable T ingredient, java.lang.String name)
public static void assertMainThread()
public static <T> net.minecraft.crash.ReportedException createRenderIngredientException(java.lang.Throwable throwable, T ingredient)