public class WorldGenWrapper
extends java.lang.Object
implements mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension, mezz.jei.api.gui.ingredient.ITooltipCallback<net.minecraft.item.ItemStack>
| Modifier and Type | Field and Description |
|---|---|
protected static int |
X_AXIS_SIZE |
protected static int |
X_OFFSET |
protected static int |
Y_AXIS_SIZE |
protected static int |
Y_OFFSET |
| Constructor and Description |
|---|
WorldGenWrapper(WorldGenEntry worldGenEntry) |
| 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.
|
net.minecraft.item.ItemStack |
getBlock() |
java.util.List<net.minecraft.item.ItemStack> |
getDrops() |
int |
getLineColor() |
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipStrings(double mouseX,
double mouseY)
Get the tooltip for whatever's under the mouse.
|
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. |
protected static final int X_OFFSET
protected static final int Y_OFFSET
protected static final int X_AXIS_SIZE
protected static final int Y_AXIS_SIZE
public WorldGenWrapper(WorldGenEntry worldGenEntry)
public int getLineColor()
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 net.minecraft.item.ItemStack getBlock()
public java.util.List<net.minecraft.item.ItemStack> getDrops()
public 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 java.util.List<net.minecraft.util.text.ITextComponent> getTooltipStrings(double mouseX,
double mouseY)
mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionIGuiIngredientGroup.addTooltipCallback(ITooltipCallback)
To add tooltips for a recipe category, see IRecipeCategory.getTooltipStrings(Object, double, double)getTooltipStrings 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.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>