public class DungeonCategory extends BlankJEIRecipeCategory<DungeonWrapper>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
ITEMS_PER_PAGE |
protected static int |
SPACING_X |
protected static int |
SPACING_Y |
protected static int |
X_FIRST_ITEM |
protected static int |
Y_FIRST_ITEM |
| Constructor and Description |
|---|
DungeonCategory() |
| 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 DungeonWrapper> |
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.
|
static void |
reloadSettings() |
void |
setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
DungeonWrapper recipeWrapper,
mezz.jei.api.ingredients.IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
draw, getIcon, getTooltipStrings, setIngredientsprotected static final int Y_FIRST_ITEM
protected static final int X_FIRST_ITEM
protected static int SPACING_Y
protected static int SPACING_X
protected static int ITEMS_PER_PAGE
public static void reloadSettings()
@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 DungeonWrapper> getRecipeClass()
public void setRecipe(@Nonnull
mezz.jei.api.gui.IRecipeLayout recipeLayout,
@Nonnull
DungeonWrapper 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)