public abstract class ProcessingViaFanCategory<T extends net.minecraft.item.crafting.IRecipe<?>> extends CreateRecipeCategory<T>
name, recipeCatalysts, recipes, uid| Modifier | Constructor and Description |
|---|---|
|
ProcessingViaFanCategory(mezz.jei.api.gui.drawable.IDrawable icon) |
protected |
ProcessingViaFanCategory(int width,
mezz.jei.api.gui.drawable.IDrawable icon) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(T recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw extras or additional info about the recipe.
|
static java.util.function.Supplier<net.minecraft.item.ItemStack> |
getFan(java.lang.String name) |
abstract void |
renderAttachedBlock(com.mojang.blaze3d.matrix.MatrixStack matrixStack) |
protected void |
renderWidgets(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
T recipe,
double mouseX,
double mouseY) |
void |
setIngredients(T recipe,
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,
T recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
protected void |
translateFan(com.mojang.blaze3d.matrix.MatrixStack matrixStack) |
addFluidTooltip, addFluidTooltip, addStochasticTooltip, addStochasticTooltip, doubleItemIcon, emptyBackground, getBackground, getIcon, getRenderedSlot, getTitle, getUid, itemIcon, setCategoryId, withImprovedVisibility, withImprovedVisibilitypublic ProcessingViaFanCategory(mezz.jei.api.gui.drawable.IDrawable icon)
protected ProcessingViaFanCategory(int width,
mezz.jei.api.gui.drawable.IDrawable icon)
public void setIngredients(T recipe, 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.public static java.util.function.Supplier<net.minecraft.item.ItemStack> getFan(java.lang.String name)
public void setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
T recipe,
@Nullable
mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeLayout properties from the recipe.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)protected void renderWidgets(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
T recipe,
double mouseX,
double mouseY)
public void draw(@Nullable
T recipe,
@Nullable
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeCategory.getTooltipStrings(Object, double, double)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.protected void translateFan(com.mojang.blaze3d.matrix.MatrixStack matrixStack)
public abstract void renderAttachedBlock(com.mojang.blaze3d.matrix.MatrixStack matrixStack)