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,ProcessingViaFanCategory.MultiOutput
@ParametersAreNonnullByDefault
public abstract class ProcessingViaFanCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
extends CreateRecipeCategory<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProcessingViaFanCategory.MultiOutput<T extends ProcessingRecipe<?>> -
Field Summary
FieldsFields inherited from class com.simibubi.create.compat.jei.category.CreateRecipeCategory
name, recipeCatalysts, recipes, type -
Constructor Summary
ConstructorsConstructorDescriptionProcessingViaFanCategory(int width, mezz.jei.api.gui.drawable.IDrawable icon) ProcessingViaFanCategory(mezz.jei.api.gui.drawable.IDrawable icon) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(T recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView iRecipeSlotsView, com.mojang.blaze3d.vertex.PoseStack matrixStack, double mouseX, double mouseY) Draw extras or additional info about the recipe.protected AllGuiTexturesstatic Supplier<net.minecraft.world.item.ItemStack>protected abstract voidrenderAttachedBlock(com.mojang.blaze3d.vertex.PoseStack matrixStack) protected voidrenderWidgets(com.mojang.blaze3d.vertex.PoseStack matrixStack, T recipe, double mouseX, double mouseY) voidsetRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, T recipe, mezz.jei.api.recipe.IFocusGroup focuses) Sets all the recipe's ingredients by filling out an instance ofIRecipeLayoutBuilder.protected voidtranslateFan(com.mojang.blaze3d.vertex.PoseStack matrixStack) Methods inherited from class com.simibubi.create.compat.jei.category.CreateRecipeCategory
addFluidTooltip, addFluidTooltip, addStochasticTooltip, doubleItemIcon, emptyBackground, getBackground, getIcon, getRecipeClass, getRecipeType, getRenderedSlot, getRenderedSlot, getRenderedSlot, getTitle, getUid, itemIcon, registerRecipes, 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
draw, getRegistryName, getTooltipStrings, getTooltipStrings, handleClick, handleInput, isHandled, setIngredients, setRecipe, setRecipe
-
Field Details
-
SCALE
protected static final int SCALE- See Also:
-
-
Constructor Details
-
ProcessingViaFanCategory
public ProcessingViaFanCategory(mezz.jei.api.gui.drawable.IDrawable icon) -
ProcessingViaFanCategory
public ProcessingViaFanCategory(int width, mezz.jei.api.gui.drawable.IDrawable icon)
-
-
Method Details
-
getFan
-
setRecipe
public void setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, T recipe, mezz.jei.api.recipe.IFocusGroup focuses) Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategorySets all the recipe's ingredients by filling out an instance ofIRecipeLayoutBuilder. This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe. -
draw
public void draw(T recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView iRecipeSlotsView, 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, IRecipeSlotsView, double, double)- Parameters:
recipe- the current recipe being drawn.iRecipeSlotsView- a view of the current recipe slots being drawn.matrixStack- the currentPoseStackfor rendering.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.for information about the ingredients that are currently being drawn.
-
renderWidgets
protected void renderWidgets(com.mojang.blaze3d.vertex.PoseStack matrixStack, T recipe, double mouseX, double mouseY) -
getBlockShadow
-
translateFan
protected void translateFan(com.mojang.blaze3d.vertex.PoseStack matrixStack) -
renderAttachedBlock
protected abstract void renderAttachedBlock(com.mojang.blaze3d.vertex.PoseStack matrixStack)
-