Class ProcessingViaFanCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
java.lang.Object
com.simibubi.create.compat.jei.category.CreateRecipeCategory<T>
com.simibubi.create.compat.jei.category.ProcessingViaFanCategory<T>
- All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<T>
- Direct Known Subclasses:
FanBlastingCategory,FanSmokingCategory,FanWashingCategory
public abstract class ProcessingViaFanCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
extends CreateRecipeCategory<T>
-
Field Summary
Fields inherited from class com.simibubi.create.compat.jei.category.CreateRecipeCategory
name, recipeCatalysts, recipes, uid -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProcessingViaFanCategory(int width, mezz.jei.api.gui.drawable.IDrawable icon) ProcessingViaFanCategory(mezz.jei.api.gui.drawable.IDrawable icon) -
Method Summary
Modifier and TypeMethodDescriptionvoidDraw extras or additional info about the recipe.static Supplier<net.minecraft.world.item.ItemStack>abstract voidrenderAttachedBlock(com.mojang.blaze3d.vertex.PoseStack matrixStack) protected voidrenderWidgets(com.mojang.blaze3d.vertex.PoseStack matrixStack, T recipe, double mouseX, double mouseY) voidsetIngredients(T recipe, mezz.jei.api.ingredients.IIngredients ingredients) Sets all the recipe's ingredients by filling out an instance ofIIngredients.voidsetRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout, T recipe, mezz.jei.api.ingredients.IIngredients ingredients) Set theIRecipeLayoutproperties from the recipe.protected voidtranslateFan(com.mojang.blaze3d.vertex.PoseStack matrixStack) Methods inherited from class com.simibubi.create.compat.jei.category.CreateRecipeCategory
addFluidTooltip, addFluidTooltip, addStochasticTooltip, addStochasticTooltip, doubleItemIcon, emptyBackground, getBackground, getIcon, getRenderedSlot, getTitle, getUid, itemIcon, setCategoryId, withImprovedVisibility, withImprovedVisibilityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mezz.jei.api.recipe.category.IRecipeCategory
getRecipeClass, getTooltipStrings, handleClick, handleInput, isHandled
-
Constructor Details
-
ProcessingViaFanCategory
public ProcessingViaFanCategory(mezz.jei.api.gui.drawable.IDrawable icon) -
ProcessingViaFanCategory
protected ProcessingViaFanCategory(int width, mezz.jei.api.gui.drawable.IDrawable icon)
-
-
Method Details
-
setIngredients
Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategorySets all the recipe's ingredients by filling out an instance ofIIngredients. This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe. -
getFan
-
setRecipe
public void setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout, T recipe, @Nullable mezz.jei.api.ingredients.IIngredients ingredients) Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategorySet theIRecipeLayoutproperties from the recipe.- Parameters:
recipeLayout- the layout that needs its properties set.recipe- the recipe, for extra information.ingredients- the ingredients, already set earlier byIRecipeCategory.setIngredients(T, mezz.jei.api.ingredients.IIngredients)
-
renderWidgets
protected void renderWidgets(com.mojang.blaze3d.vertex.PoseStack matrixStack, T recipe, double mouseX, double mouseY) -
draw
public void draw(@Nullable T recipe, @Nullable com.mojang.blaze3d.vertex.PoseStack matrixStack, double mouseX, double mouseY) Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryDraw extras or additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled byIRecipeCategory.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.- See Also:
-
for a simple class for drawing things.for useful functions.
-
translateFan
protected void translateFan(com.mojang.blaze3d.vertex.PoseStack matrixStack) -
renderAttachedBlock
public abstract void renderAttachedBlock(com.mojang.blaze3d.vertex.PoseStack matrixStack)
-