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 IRecipeRegistration
public IIngredientManager getIngredientManager()
getIngredientManager
in interface IRecipeRegistration
public IVanillaRecipeFactory getVanillaRecipeFactory()
getVanillaRecipeFactory
in interface IRecipeRegistration
public void addRecipes(java.util.Collection<?> recipes, net.minecraft.util.ResourceLocation recipeCategoryUid)
IRecipeRegistration
addRecipes
in interface IRecipeRegistration
@Deprecated public <T> void addIngredientInfo(T ingredient, IIngredientType<T> ingredientType, java.lang.String... descriptionKeys)
IRecipeRegistration
addIngredientInfo
in interface IRecipeRegistration
ingredient
- 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)
IRecipeRegistration
addIngredientInfo
in interface IRecipeRegistration
ingredient
- 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)
IRecipeRegistration
addIngredientInfo
in interface IRecipeRegistration
ingredients
- 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)
IRecipeRegistration
addIngredientInfo
in interface IRecipeRegistration
ingredients
- 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()