public class BasinCategory extends CreateRecipeCategory<BasinRecipe>
name, recipeCatalysts, recipes, uid| Constructor and Description |
|---|
BasinCategory(boolean needsHeating,
mezz.jei.api.gui.drawable.IDrawable icon,
mezz.jei.api.gui.drawable.IDrawable background) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(BasinRecipe recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw extras or additional info about the recipe.
|
java.lang.Class<? extends BasinRecipe> |
getRecipeClass() |
void |
setIngredients(BasinRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
Sets all the recipe's ingredients by filling out an instance of
IIngredients. |
void |
setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
BasinRecipe recipe,
mezz.jei.api.ingredients.IIngredients iingredients)
Set the
IRecipeLayout properties from the recipe. |
addFluidTooltip, addFluidTooltip, addStochasticTooltip, addStochasticTooltip, doubleItemIcon, emptyBackground, getBackground, getIcon, getRenderedSlot, getTitle, getUid, itemIcon, setCategoryId, withImprovedVisibility, withImprovedVisibilitypublic BasinCategory(boolean needsHeating,
mezz.jei.api.gui.drawable.IDrawable icon,
mezz.jei.api.gui.drawable.IDrawable background)
public java.lang.Class<? extends BasinRecipe> getRecipeClass()
public void setIngredients(BasinRecipe recipe, mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIIngredients.
This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.public void setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
BasinRecipe recipe,
mezz.jei.api.ingredients.IIngredients iingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeLayout properties from the recipe.recipeLayout - the layout that needs its properties set.recipe - the recipe, for extra information.iingredients - the ingredients, already set earlier by IRecipeCategory.setIngredients(T, mezz.jei.api.ingredients.IIngredients)public void draw(BasinRecipe recipe, com.mojang.blaze3d.matrix.MatrixStack matrixStack, double mouseX, double mouseY)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeCategory.getTooltipStrings(Object, double, double)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.