public class RailWorkerBenchCategory extends java.lang.Object implements mezz.jei.api.recipe.category.IRecipeCategory<RailWorkerBenchRecipe>
| Modifier and Type | Field and Description |
|---|---|
static int |
height |
static net.minecraft.util.ResourceLocation |
UID |
static int |
width |
| Constructor and Description |
|---|
RailWorkerBenchCategory(mezz.jei.api.helpers.IGuiHelper guiHelper) |
| Modifier and Type | Method and Description |
|---|---|
mezz.jei.api.gui.drawable.IDrawable |
getBackground()
Returns the drawable background for a single recipe in this category.
|
mezz.jei.api.gui.drawable.IDrawable |
getIcon()
Icon for the category tab.
|
java.lang.Class<? extends RailWorkerBenchRecipe> |
getRecipeClass() |
java.lang.String |
getTitle()
Returns the localized name for this recipe type.
|
net.minecraft.util.ResourceLocation |
getUid()
Returns a unique ID for this recipe category.
|
void |
setIngredients(RailWorkerBenchRecipe railWorkerBenchRecipe,
mezz.jei.api.ingredients.IIngredients ingredients)
Sets all the recipe's ingredients by filling out an instance of
IIngredients. |
void |
setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
RailWorkerBenchRecipe railWorkerBenchRecipe,
mezz.jei.api.ingredients.IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
public static final net.minecraft.util.ResourceLocation UID
public static final int width
public static final int height
public RailWorkerBenchCategory(mezz.jei.api.helpers.IGuiHelper guiHelper)
@Nonnull public net.minecraft.util.ResourceLocation getUid()
mezz.jei.api.recipe.category.IRecipeCategorygetUid in interface mezz.jei.api.recipe.category.IRecipeCategory<RailWorkerBenchRecipe>for vanilla examples@Nonnull public java.lang.Class<? extends RailWorkerBenchRecipe> getRecipeClass()
getRecipeClass in interface mezz.jei.api.recipe.category.IRecipeCategory<RailWorkerBenchRecipe>@Nonnull public java.lang.String getTitle()
mezz.jei.api.recipe.category.IRecipeCategorygetTitle in interface mezz.jei.api.recipe.category.IRecipeCategory<RailWorkerBenchRecipe>@Nonnull public mezz.jei.api.gui.drawable.IDrawable getBackground()
mezz.jei.api.recipe.category.IRecipeCategorygetBackground in interface mezz.jei.api.recipe.category.IRecipeCategory<RailWorkerBenchRecipe>@Nonnull public mezz.jei.api.gui.drawable.IDrawable getIcon()
mezz.jei.api.recipe.category.IRecipeCategoryIGuiHelper.createDrawableIngredient(Object) to create a drawable from an ingredient.getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<RailWorkerBenchRecipe>@ParametersAreNonnullByDefault public void setIngredients(RailWorkerBenchRecipe railWorkerBenchRecipe, mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIIngredients.
This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.setIngredients in interface mezz.jei.api.recipe.category.IRecipeCategory<RailWorkerBenchRecipe>@ParametersAreNonnullByDefault
public void setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
RailWorkerBenchRecipe railWorkerBenchRecipe,
mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeLayout properties from the recipe.setRecipe in interface mezz.jei.api.recipe.category.IRecipeCategory<RailWorkerBenchRecipe>recipeLayout - the layout that needs its properties set.railWorkerBenchRecipe - the recipe, for extra information.ingredients - the ingredients, already set earlier by IRecipeCategory.setIngredients(T, mezz.jei.api.ingredients.IIngredients)