public class CampfireCategory extends AbstractCookingCategory<net.minecraft.item.crafting.CampfireCookingRecipe>
animatedFlame, fuelSlot, inputSlot, outputSlot, staticFlame| Constructor and Description |
|---|
CampfireCategory(IGuiHelper guiHelper) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(net.minecraft.item.crafting.CampfireCookingRecipe 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.
|
java.lang.Class<? extends net.minecraft.item.crafting.CampfireCookingRecipe> |
getRecipeClass() |
net.minecraft.util.ResourceLocation |
getUid()
Returns a unique ID for this recipe category.
|
void |
setRecipe(IRecipeLayout recipeLayout,
net.minecraft.item.crafting.CampfireCookingRecipe recipe,
IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
drawCookTime, drawExperience, getArrow, getIcon, getTitle, getTitleAsTextComponent, setIngredientsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTooltipStrings, handleClick, isHandledpublic CampfireCategory(IGuiHelper guiHelper)
public net.minecraft.util.ResourceLocation getUid()
IRecipeCategoryfor vanilla examplespublic java.lang.Class<? extends net.minecraft.item.crafting.CampfireCookingRecipe> getRecipeClass()
public IDrawable getBackground()
IRecipeCategorygetBackground in interface IRecipeCategory<net.minecraft.item.crafting.CampfireCookingRecipe>getBackground in class AbstractCookingCategory<net.minecraft.item.crafting.CampfireCookingRecipe>public void draw(net.minecraft.item.crafting.CampfireCookingRecipe recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
IRecipeCategoryIRecipeCategory.getTooltipStrings(Object, double, double)draw in interface IRecipeCategory<net.minecraft.item.crafting.CampfireCookingRecipe>draw in class AbstractCookingCategory<net.minecraft.item.crafting.CampfireCookingRecipe>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, net.minecraft.item.crafting.CampfireCookingRecipe recipe, IIngredients ingredients)
IRecipeCategoryIRecipeLayout properties from the recipe.setRecipe in interface IRecipeCategory<net.minecraft.item.crafting.CampfireCookingRecipe>setRecipe in class AbstractCookingCategory<net.minecraft.item.crafting.CampfireCookingRecipe>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)