public class BrewingRecipeCategory extends java.lang.Object implements IRecipeCategory<JeiBrewingRecipe>
| Constructor and Description |
|---|
BrewingRecipeCategory(IGuiHelper guiHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(JeiBrewingRecipe recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw extras or additional info about the recipe.
|
IDrawable |
getBackground()
Returns the drawable background for a single recipe in this category.
|
IDrawable |
getIcon()
Icon for the category tab.
|
java.lang.Class<? extends JeiBrewingRecipe> |
getRecipeClass() |
java.lang.String |
getTitle()
Deprecated.
|
net.minecraft.util.text.ITextComponent |
getTitleAsTextComponent()
Returns a text component representing the name of this recipe type.
|
net.minecraft.util.ResourceLocation |
getUid()
Returns a unique ID for this recipe category.
|
void |
setIngredients(JeiBrewingRecipe recipe,
IIngredients ingredients)
Sets all the recipe's ingredients by filling out an instance of
IIngredients. |
void |
setRecipe(IRecipeLayout recipeLayout,
JeiBrewingRecipe recipe,
IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTooltipStrings, handleClick, isHandledpublic BrewingRecipeCategory(IGuiHelper guiHelper)
public net.minecraft.util.ResourceLocation getUid()
IRecipeCategorygetUid in interface IRecipeCategory<JeiBrewingRecipe>for vanilla examplespublic java.lang.Class<? extends JeiBrewingRecipe> getRecipeClass()
getRecipeClass in interface IRecipeCategory<JeiBrewingRecipe>@Deprecated public java.lang.String getTitle()
IRecipeCategorygetTitle in interface IRecipeCategory<JeiBrewingRecipe>public net.minecraft.util.text.ITextComponent getTitleAsTextComponent()
IRecipeCategorygetTitleAsTextComponent in interface IRecipeCategory<JeiBrewingRecipe>public IDrawable getBackground()
IRecipeCategorygetBackground in interface IRecipeCategory<JeiBrewingRecipe>public IDrawable getIcon()
IRecipeCategoryIGuiHelper.createDrawableIngredient(Object) to create a drawable from an ingredient.getIcon in interface IRecipeCategory<JeiBrewingRecipe>public void setIngredients(JeiBrewingRecipe recipe, IIngredients ingredients)
IRecipeCategoryIIngredients.
This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.setIngredients in interface IRecipeCategory<JeiBrewingRecipe>public void draw(JeiBrewingRecipe recipe, com.mojang.blaze3d.matrix.MatrixStack matrixStack, double mouseX, double mouseY)
IRecipeCategoryIRecipeCategory.getTooltipStrings(Object, double, double)draw in interface IRecipeCategory<JeiBrewingRecipe>mouseX - the X position of the mouse, relative to the recipe.mouseY - the Y position of the mouse, relative to the recipe.for a simple class for drawing things.,
for useful functions.public void setRecipe(IRecipeLayout recipeLayout, JeiBrewingRecipe recipe, IIngredients ingredients)
IRecipeCategoryIRecipeLayout properties from the recipe.setRecipe in interface IRecipeCategory<JeiBrewingRecipe>recipeLayout - the layout that needs its properties set.recipe - the recipe, for extra information.ingredients - the ingredients, already set earlier by IRecipeCategory.setIngredients(T, mezz.jei.api.ingredients.IIngredients)