public interface IRecipeWrapper
Normal recipes are converted to wrapped recipes by IRecipeHandler.getRecipeWrapper(Object)
.
BlankRecipeWrapper
Modifier and Type | Method and Description |
---|---|
void |
drawAnimations(net.minecraft.client.Minecraft minecraft,
int recipeWidth,
int recipeHeight)
Deprecated.
since 3.13.1. Move animations into
drawInfo(Minecraft, int, int, int, int) ,
these are being combined because nobody uses the config option to disable animations. |
void |
drawInfo(net.minecraft.client.Minecraft minecraft,
int recipeWidth,
int recipeHeight,
int mouseX,
int mouseY)
Draw additional info about the recipe.
|
java.util.List<net.minecraftforge.fluids.FluidStack> |
getFluidInputs()
Deprecated.
since JEI 3.11.0. Use
getIngredients(IIngredients) |
java.util.List<net.minecraftforge.fluids.FluidStack> |
getFluidOutputs()
Deprecated.
since JEI 3.11.0. Use
getIngredients(IIngredients) |
void |
getIngredients(IIngredients ingredients)
Gets all the recipe's ingredients by filling out an instance of
IIngredients . |
java.util.List |
getInputs()
Deprecated.
since JEI 3.11.0. Use
getIngredients(IIngredients) |
java.util.List |
getOutputs()
Deprecated.
since JEI 3.11.0. Use
getIngredients(IIngredients) |
java.util.List<java.lang.String> |
getTooltipStrings(int mouseX,
int mouseY)
Get the tooltip for whatever's under the mouse.
|
boolean |
handleClick(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY,
int mouseButton)
Called when a player clicks the recipe.
|
void getIngredients(IIngredients ingredients)
IIngredients
.@Deprecated java.util.List getInputs()
getIngredients(IIngredients)
@Deprecated java.util.List getOutputs()
getIngredients(IIngredients)
@Deprecated java.util.List<net.minecraftforge.fluids.FluidStack> getFluidInputs()
getIngredients(IIngredients)
@Deprecated java.util.List<net.minecraftforge.fluids.FluidStack> getFluidOutputs()
getIngredients(IIngredients)
void drawInfo(net.minecraft.client.Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY)
getTooltipStrings(int, int)
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.
@Deprecated void drawAnimations(net.minecraft.client.Minecraft minecraft, int recipeWidth, int recipeHeight)
drawInfo(Minecraft, int, int, int, int)
,
these are being combined because nobody uses the config option to disable animations.@Nullable java.util.List<java.lang.String> getTooltipStrings(int mouseX, int mouseY)
IGuiIngredientGroup.addTooltipCallback(ITooltipCallback)
To add tooltips for a recipe category, see IRecipeCategory.getTooltipStrings(int, int)
mouseX
- the X position of the mouse, relative to the recipe.mouseY
- the Y position of the mouse, relative to the recipe.boolean handleClick(net.minecraft.client.Minecraft minecraft, int mouseX, int mouseY, int mouseButton)
mouseX
- the X position of the mouse, relative to the recipe.mouseY
- the Y position of the mouse, relative to the recipe.mouseButton
- the current mouse event button.