public class VillagerCategory extends BlankJEIRecipeCategory<VillagerWrapper>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
X_FIRST_ITEM |
protected static int |
X_ITEM_DISTANCE |
protected static int |
X_ITEM_RESULT |
protected static int |
Y_ITEM_DISTANCE |
| Constructor and Description |
|---|
VillagerCategory() |
| Modifier and Type | Method and Description |
|---|---|
mezz.jei.api.gui.drawable.IDrawable |
getBackground()
Returns the drawable background for a single recipe in this category.
|
java.lang.Class<? extends VillagerWrapper> |
getRecipeClass() |
java.lang.String |
getTitle()
Returns the localized name for this recipe type.
|
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 |
setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
VillagerWrapper recipeWrapper,
mezz.jei.api.ingredients.IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
draw, getIcon, getTooltipStrings, setIngredientsprotected static final int X_FIRST_ITEM
protected static final int X_ITEM_DISTANCE
protected static final int X_ITEM_RESULT
protected static final int Y_ITEM_DISTANCE
@Nonnull public net.minecraft.util.ResourceLocation getUid()
mezz.jei.api.recipe.category.IRecipeCategoryfor vanilla examples@Nonnull public java.lang.String getTitle()
mezz.jei.api.recipe.category.IRecipeCategory@Nonnull public net.minecraft.util.text.ITextComponent getTitleAsTextComponent()
mezz.jei.api.recipe.category.IRecipeCategory@Nonnull public mezz.jei.api.gui.drawable.IDrawable getBackground()
mezz.jei.api.recipe.category.IRecipeCategorypublic java.lang.Class<? extends VillagerWrapper> getRecipeClass()
public void setRecipe(@Nonnull
mezz.jei.api.gui.IRecipeLayout recipeLayout,
@Nonnull
VillagerWrapper recipeWrapper,
@Nonnull
mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeLayout properties from the recipe.recipeLayout - the layout that needs its properties set.recipeWrapper - the recipe, for extra information.ingredients - the ingredients, already set earlier by IRecipeCategory.setIngredients(T, mezz.jei.api.ingredients.IIngredients)