public class WorldGenCategory extends BlankJEIRecipeCategory<WorldGenWrapper>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
X_DROP_ITEM |
protected static int |
X_ITEM |
protected static int |
Y_DROP_ITEM |
protected static int |
Y_ITEM |
| Constructor and Description |
|---|
WorldGenCategory() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(WorldGenWrapper recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw extras or additional info about the recipe.
|
mezz.jei.api.gui.drawable.IDrawable |
getBackground()
Returns the drawable background for a single recipe in this category.
|
java.lang.Class<? extends WorldGenWrapper> |
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,
WorldGenWrapper recipeWrapper,
mezz.jei.api.ingredients.IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
getIcon, getTooltipStrings, setIngredientsprotected static final int X_ITEM
protected static final int Y_ITEM
protected static final int X_DROP_ITEM
protected static final int Y_DROP_ITEM
@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 WorldGenWrapper> getRecipeClass()
public void draw(WorldGenWrapper recipe, com.mojang.blaze3d.matrix.MatrixStack matrixStack, double mouseX, double mouseY)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeCategory.getTooltipStrings(Object, double, double)draw in interface mezz.jei.api.recipe.category.IRecipeCategory<WorldGenWrapper>draw in class BlankJEIRecipeCategory<WorldGenWrapper>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(@Nonnull
mezz.jei.api.gui.IRecipeLayout recipeLayout,
@Nonnull
WorldGenWrapper 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)