public class PlantWrapper
extends java.lang.Object
implements mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension, mezz.jei.api.gui.ingredient.ITooltipCallback<net.minecraft.item.ItemStack>
| Constructor and Description |
|---|
PlantWrapper(PlantEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawInfo(int recipeWidth,
int recipeHeight,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw additional info about the recipe.
|
float |
getChance(net.minecraft.item.ItemStack itemStack) |
int[] |
getMinMax(net.minecraft.item.ItemStack itemStack) |
void |
onTooltip(int slotIndex,
boolean input,
net.minecraft.item.ItemStack ingredient,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip)
Change the tooltip for an ingredient.
|
void |
setIngredients(mezz.jei.api.ingredients.IIngredients ingredients)
Gets all the recipe's ingredients by filling out an instance of
IIngredients. |
public PlantWrapper(PlantEntry entry)
public void setIngredients(@Nonnull
mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionIIngredients.setIngredients in interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionpublic void drawInfo(int recipeWidth,
int recipeHeight,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionIRecipeCategoryExtension.getTooltipStrings(double, double)drawInfo in interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionmouseX - 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.public void onTooltip(int slotIndex,
boolean input,
net.minecraft.item.ItemStack ingredient,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip)
mezz.jei.api.gui.ingredient.ITooltipCallbackonTooltip in interface mezz.jei.api.gui.ingredient.ITooltipCallback<net.minecraft.item.ItemStack>public float getChance(net.minecraft.item.ItemStack itemStack)
public int[] getMinMax(net.minecraft.item.ItemStack itemStack)