public class RecipeRegistration extends java.lang.Object implements IRecipeRegistration
| Constructor and Description |
|---|
RecipeRegistration(com.google.common.collect.ImmutableMap<net.minecraft.util.ResourceLocation,IRecipeCategory<?>> recipeCategoriesByUid,
IJeiHelpers jeiHelpers,
IIngredientManager ingredientManager,
IVanillaRecipeFactory vanillaRecipeFactory) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addIngredientInfo(java.util.List<T> ingredients,
IIngredientType<T> ingredientType,
net.minecraft.util.text.ITextComponent... descriptionComponents)
Add an info page for multiple ingredients together.
|
<T> void |
addIngredientInfo(java.util.List<T> ingredients,
IIngredientType<T> ingredientType,
java.lang.String... descriptionKeys)
Deprecated.
|
<T> void |
addIngredientInfo(T ingredient,
IIngredientType<T> ingredientType,
net.minecraft.util.text.ITextComponent... descriptionComponents)
Add an info page for an ingredient.
|
<T> void |
addIngredientInfo(T ingredient,
IIngredientType<T> ingredientType,
java.lang.String... descriptionKeys)
Deprecated.
|
void |
addRecipes(java.util.Collection<?> recipes,
net.minecraft.util.ResourceLocation recipeCategoryUid)
Add the recipes provided by your plugin.
|
IIngredientManager |
getIngredientManager() |
IJeiHelpers |
getJeiHelpers() |
com.google.common.collect.ImmutableListMultimap<net.minecraft.util.ResourceLocation,java.lang.Object> |
getRecipes() |
IVanillaRecipeFactory |
getVanillaRecipeFactory() |
public RecipeRegistration(com.google.common.collect.ImmutableMap<net.minecraft.util.ResourceLocation,IRecipeCategory<?>> recipeCategoriesByUid, IJeiHelpers jeiHelpers, IIngredientManager ingredientManager, IVanillaRecipeFactory vanillaRecipeFactory)
public IJeiHelpers getJeiHelpers()
getJeiHelpers in interface IRecipeRegistrationpublic IIngredientManager getIngredientManager()
getIngredientManager in interface IRecipeRegistrationpublic IVanillaRecipeFactory getVanillaRecipeFactory()
getVanillaRecipeFactory in interface IRecipeRegistrationpublic void addRecipes(java.util.Collection<?> recipes,
net.minecraft.util.ResourceLocation recipeCategoryUid)
IRecipeRegistrationaddRecipes in interface IRecipeRegistration@Deprecated
public <T> void addIngredientInfo(T ingredient,
IIngredientType<T> ingredientType,
java.lang.String... descriptionKeys)
IRecipeRegistrationaddIngredientInfo in interface IRecipeRegistrationingredient - the ingredient to describeingredientType - the type of the ingredientdescriptionKeys - Localization keys for info text.
New lines can be added with "\n" or by giving multiple descriptionKeys.
Long lines are wrapped automatically.
Very long entries will span multiple pages automatically.public <T> void addIngredientInfo(T ingredient,
IIngredientType<T> ingredientType,
net.minecraft.util.text.ITextComponent... descriptionComponents)
IRecipeRegistrationaddIngredientInfo in interface IRecipeRegistrationingredient - The ingredient to describeingredientType - The type of the ingredientdescriptionComponents - Text components for info text.
New lines can be added with "\n" or by giving multiple descriptions.
Long lines are wrapped automatically.
Very long entries will span multiple pages automatically.@Deprecated
public <T> void addIngredientInfo(java.util.List<T> ingredients,
IIngredientType<T> ingredientType,
java.lang.String... descriptionKeys)
IRecipeRegistrationaddIngredientInfo in interface IRecipeRegistrationingredients - the ingredients to describeingredientType - the type of the ingredientsdescriptionKeys - Localization keys for info text.
New lines can be added with "\n" or by giving multiple descriptionKeys.
Long lines are wrapped automatically.
Very long entries will span multiple pages automatically.public <T> void addIngredientInfo(java.util.List<T> ingredients,
IIngredientType<T> ingredientType,
net.minecraft.util.text.ITextComponent... descriptionComponents)
IRecipeRegistrationaddIngredientInfo in interface IRecipeRegistrationingredients - The ingredients to describeingredientType - The type of the ingredientsdescriptionComponents - Text components for info text.
New lines can be added with "\n" or by giving multiple descriptions.
Long lines are wrapped automatically.
Very long entries will span multiple pages automatically.public com.google.common.collect.ImmutableListMultimap<net.minecraft.util.ResourceLocation,java.lang.Object> getRecipes()