public abstract class AbstractCookingCategory<T extends net.minecraft.item.crafting.AbstractCookingRecipe> extends FurnaceVariantCategory<T>
animatedFlame, fuelSlot, inputSlot, outputSlot, staticFlame| Constructor and Description |
|---|
AbstractCookingCategory(IGuiHelper guiHelper,
net.minecraft.block.Block icon,
java.lang.String translationKey,
int regularCookTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(T recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw extras or additional info about the recipe.
|
protected void |
drawCookTime(T recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int y) |
protected void |
drawExperience(T recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int y) |
protected IDrawableAnimated |
getArrow(T recipe) |
IDrawable |
getBackground()
Returns the drawable background for a single recipe in this category.
|
IDrawable |
getIcon()
Icon for the category tab.
|
java.lang.String |
getTitle()
Deprecated.
|
net.minecraft.util.text.ITextComponent |
getTitleAsTextComponent()
Returns a text component representing the name of this recipe type.
|
void |
setIngredients(T recipe,
IIngredients ingredients)
Sets all the recipe's ingredients by filling out an instance of
IIngredients. |
void |
setRecipe(IRecipeLayout recipeLayout,
T recipe,
IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRecipeClass, getTooltipStrings, getUid, handleClick, isHandledpublic AbstractCookingCategory(IGuiHelper guiHelper, net.minecraft.block.Block icon, java.lang.String translationKey, int regularCookTime)
protected IDrawableAnimated getArrow(T recipe)
public IDrawable getBackground()
IRecipeCategorypublic IDrawable getIcon()
IRecipeCategoryIGuiHelper.createDrawableIngredient(Object) to create a drawable from an ingredient.public void setIngredients(T recipe, IIngredients ingredients)
IRecipeCategoryIIngredients.
This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.public void draw(T recipe, com.mojang.blaze3d.matrix.MatrixStack matrixStack, double mouseX, double mouseY)
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.protected void drawExperience(T recipe, com.mojang.blaze3d.matrix.MatrixStack matrixStack, int y)
protected void drawCookTime(T recipe, com.mojang.blaze3d.matrix.MatrixStack matrixStack, int y)
@Deprecated public java.lang.String getTitle()
IRecipeCategorypublic net.minecraft.util.text.ITextComponent getTitleAsTextComponent()
IRecipeCategorypublic void setRecipe(IRecipeLayout recipeLayout, T recipe, IIngredients ingredients)
IRecipeCategoryIRecipeLayout properties from the recipe.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)