Class MechanicalCraftingCategory

java.lang.Object
com.simibubi.create.compat.jei.category.CreateRecipeCategory<net.minecraft.world.item.crafting.CraftingRecipe>
com.simibubi.create.compat.jei.category.MechanicalCraftingCategory
All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.world.item.crafting.CraftingRecipe>

@ParametersAreNonnullByDefault public class MechanicalCraftingCategory extends CreateRecipeCategory<net.minecraft.world.item.crafting.CraftingRecipe>
  • Constructor Details

    • MechanicalCraftingCategory

      public MechanicalCraftingCategory()
  • Method Details

    • setRecipe

      public void setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, net.minecraft.world.item.crafting.CraftingRecipe recipe, mezz.jei.api.recipe.IFocusGroup focuses)
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Sets all the recipe's ingredients by filling out an instance of IRecipeLayoutBuilder. This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.
    • getScale

      public static float getScale(net.minecraft.world.item.crafting.CraftingRecipe recipe)
    • getYPadding

      public static int getYPadding(net.minecraft.world.item.crafting.CraftingRecipe recipe)
    • getXPadding

      public static int getXPadding(net.minecraft.world.item.crafting.CraftingRecipe recipe)
    • draw

      public void draw(net.minecraft.world.item.crafting.CraftingRecipe 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.IRecipeCategory
      Draw extras or additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled by IRecipeCategory.getTooltipStrings(Object, IRecipeSlotsView, double, double)
      Parameters:
      recipe - the current recipe being drawn.
      iRecipeSlotsView - a view of the current recipe slots being drawn.
      matrixStack - the current PoseStack for 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.
    • getRecipeClass

      public Class<? extends net.minecraft.world.item.crafting.CraftingRecipe> getRecipeClass()
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Returns the class of recipes that this recipe category handles.
      Specified by:
      getRecipeClass in interface mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.world.item.crafting.CraftingRecipe>
      Specified by:
      getRecipeClass in class CreateRecipeCategory<net.minecraft.world.item.crafting.CraftingRecipe>