Class CreateRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
java.lang.Object
com.simibubi.create.compat.jei.category.CreateRecipeCategory<T>
- All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.world.item.crafting.RecipeHolder<T>>
- Direct Known Subclasses:
BasinCategory,BlockCuttingCategory,CrushingCategory,DeployingCategory,ItemApplicationCategory,ItemDrainCategory,MechanicalCraftingCategory,MillingCategory,MysteriousItemConversionCategory,PolishingCategory,PressingCategory,ProcessingViaFanCategory,SawingCategory,SequencedAssemblyCategory,SpoutCategory
@ParametersAreNonnullByDefault
public abstract class CreateRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
extends Object
implements mezz.jei.api.recipe.category.IRecipeCategory<net.minecraft.world.item.crafting.RecipeHolder<T>>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCreateRecipeCategory.Builder<T extends net.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.item.crafting.RecipeInput>>static interfaceCreateRecipeCategory.Factory<T extends net.minecraft.world.item.crafting.Recipe<?>>static final recordCreateRecipeCategory.Info<T extends net.minecraft.world.item.crafting.Recipe<?>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final mezz.jei.api.gui.drawable.IDrawableprotected final mezz.jei.api.gui.drawable.IDrawableprotected final net.minecraft.network.chat.Componentprotected final mezz.jei.api.recipe.RecipeType<net.minecraft.world.item.crafting.RecipeHolder<T>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic mezz.jei.api.gui.builder.IRecipeSlotBuilderaddFluidSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, int x, int y, net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient ingredient) static mezz.jei.api.gui.builder.IRecipeSlotBuilderaddFluidSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, int x, int y, net.neoforged.neoforge.fluids.FluidStack stack) static mezz.jei.api.gui.ingredient.IRecipeSlotRichTooltipCallbackaddStochasticTooltip(ProcessingOutput output) protected static mezz.jei.api.gui.drawable.IDrawableasDrawable(AllGuiTextures texture) voiddraw(net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics gui, double mouseX, double mouseY) protected abstract voiddraw(T recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics gui, double mouseX, double mouseY) mezz.jei.api.gui.drawable.IDrawablemezz.jei.api.gui.drawable.IDrawablegetIcon()@NotNull mezz.jei.api.recipe.RecipeType<net.minecraft.world.item.crafting.RecipeHolder<T>> static mezz.jei.api.gui.drawable.IDrawablestatic mezz.jei.api.gui.drawable.IDrawablegetRenderedSlot(float chance) static mezz.jei.api.gui.drawable.IDrawablegetRenderedSlot(ProcessingOutput output) static net.minecraft.world.item.ItemStackgetResultItem(net.minecraft.world.item.crafting.Recipe<?> recipe) net.minecraft.network.chat.ComponentgetTitle()List<net.minecraft.network.chat.Component> getTooltipStrings(net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY) protected List<net.minecraft.network.chat.Component> getTooltipStrings(T recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY) voidregisterCatalysts(mezz.jei.api.registration.IRecipeCatalystRegistration registration) voidregisterRecipes(mezz.jei.api.registration.IRecipeRegistration registration) voidsetRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.recipe.IFocusGroup focuses) protected abstract voidsetRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, T recipe, mezz.jei.api.recipe.IFocusGroup focuses) Methods 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
createRecipeExtras, createRecipeExtras, getCodec, getHeight, getRegistryName, getTooltip, getWidth, handleInput, isHandled, needsRecipeBorder, onDisplayedIngredientsUpdate
-
Field Details
-
type
protected final mezz.jei.api.recipe.RecipeType<net.minecraft.world.item.crafting.RecipeHolder<T extends net.minecraft.world.item.crafting.Recipe<?>>> type -
title
protected final net.minecraft.network.chat.Component title -
background
protected final mezz.jei.api.gui.drawable.IDrawable background -
icon
protected final mezz.jei.api.gui.drawable.IDrawable icon
-
-
Constructor Details
-
CreateRecipeCategory
-
-
Method Details
-
getRecipeType
@NotNull public @NotNull mezz.jei.api.recipe.RecipeType<net.minecraft.world.item.crafting.RecipeHolder<T>> getRecipeType()- Specified by:
getRecipeTypein interfacemezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
-
getTitle
public net.minecraft.network.chat.Component getTitle()- Specified by:
getTitlein interfacemezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
-
getBackground
public mezz.jei.api.gui.drawable.IDrawable getBackground()- Specified by:
getBackgroundin interfacemezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
-
getIcon
public mezz.jei.api.gui.drawable.IDrawable getIcon()- Specified by:
getIconin interfacemezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
-
setRecipe
public void setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.recipe.IFocusGroup focuses) - Specified by:
setRecipein interfacemezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
-
draw
public void draw(net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics gui, double mouseX, double mouseY) - Specified by:
drawin interfacemezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
-
getTooltipStrings
public List<net.minecraft.network.chat.Component> getTooltipStrings(net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY) - Specified by:
getTooltipStringsin interfacemezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
-
setRecipe
protected abstract void setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, T recipe, mezz.jei.api.recipe.IFocusGroup focuses) -
draw
protected abstract void draw(T recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics gui, double mouseX, double mouseY) -
getTooltipStrings
-
registerRecipes
public void registerRecipes(mezz.jei.api.registration.IRecipeRegistration registration) -
registerCatalysts
public void registerCatalysts(mezz.jei.api.registration.IRecipeCatalystRegistration registration) -
getRenderedSlot
public static mezz.jei.api.gui.drawable.IDrawable getRenderedSlot() -
getRenderedSlot
-
getRenderedSlot
public static mezz.jei.api.gui.drawable.IDrawable getRenderedSlot(float chance) -
getResultItem
public static net.minecraft.world.item.ItemStack getResultItem(net.minecraft.world.item.crafting.Recipe<?> recipe) -
addStochasticTooltip
public static mezz.jei.api.gui.ingredient.IRecipeSlotRichTooltipCallback addStochasticTooltip(ProcessingOutput output) -
addFluidSlot
public static mezz.jei.api.gui.builder.IRecipeSlotBuilder addFluidSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, int x, int y, net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient ingredient) -
addFluidSlot
public static mezz.jei.api.gui.builder.IRecipeSlotBuilder addFluidSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, int x, int y, net.neoforged.neoforge.fluids.FluidStack stack) -
asDrawable
-