public class StoneCuttingRecipeCategory extends java.lang.Object implements IRecipeCategory<net.minecraft.item.crafting.StonecuttingRecipe>
Constructor and Description |
---|
StoneCuttingRecipeCategory(IGuiHelper guiHelper) |
Modifier and Type | Method and Description |
---|---|
IDrawable |
getBackground()
Returns the drawable background for a single recipe in this category.
|
IDrawable |
getIcon()
Icon for the category tab.
|
java.lang.Class<? extends net.minecraft.item.crafting.StonecuttingRecipe> |
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(net.minecraft.item.crafting.StonecuttingRecipe recipe,
IIngredients ingredients)
Sets all the recipe's ingredients by filling out an instance of
IIngredients . |
void |
setRecipe(IRecipeLayout recipeLayout,
net.minecraft.item.crafting.StonecuttingRecipe recipe,
IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, getTooltipStrings, handleClick, isHandled
public static final int width
public static final int height
public StoneCuttingRecipeCategory(IGuiHelper guiHelper)
public net.minecraft.util.ResourceLocation getUid()
IRecipeCategory
getUid
in interface IRecipeCategory<net.minecraft.item.crafting.StonecuttingRecipe>
for vanilla examples
public java.lang.Class<? extends net.minecraft.item.crafting.StonecuttingRecipe> getRecipeClass()
getRecipeClass
in interface IRecipeCategory<net.minecraft.item.crafting.StonecuttingRecipe>
@Deprecated public java.lang.String getTitle()
IRecipeCategory
getTitle
in interface IRecipeCategory<net.minecraft.item.crafting.StonecuttingRecipe>
public net.minecraft.util.text.ITextComponent getTitleAsTextComponent()
IRecipeCategory
getTitleAsTextComponent
in interface IRecipeCategory<net.minecraft.item.crafting.StonecuttingRecipe>
public IDrawable getBackground()
IRecipeCategory
getBackground
in interface IRecipeCategory<net.minecraft.item.crafting.StonecuttingRecipe>
public IDrawable getIcon()
IRecipeCategory
IGuiHelper.createDrawableIngredient(Object)
to create a drawable from an ingredient.getIcon
in interface IRecipeCategory<net.minecraft.item.crafting.StonecuttingRecipe>
public void setIngredients(net.minecraft.item.crafting.StonecuttingRecipe recipe, IIngredients ingredients)
IRecipeCategory
IIngredients
.
This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.setIngredients
in interface IRecipeCategory<net.minecraft.item.crafting.StonecuttingRecipe>
public void setRecipe(IRecipeLayout recipeLayout, net.minecraft.item.crafting.StonecuttingRecipe recipe, IIngredients ingredients)
IRecipeCategory
IRecipeLayout
properties from the recipe.setRecipe
in interface IRecipeCategory<net.minecraft.item.crafting.StonecuttingRecipe>
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)