public class DungeonWrapper
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 |
|---|---|
DungeonEntry |
chest |
| Constructor and Description |
|---|
DungeonWrapper(DungeonEntry chest) |
| Modifier and Type | Method and Description |
|---|---|
int |
amountOfItems(mezz.jei.api.recipe.IFocus<net.minecraft.item.ItemStack> focus) |
void |
drawInfo(int recipeWidth,
int recipeHeight,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw additional info about the recipe.
|
java.util.List<net.minecraft.item.ItemStack> |
getItems(mezz.jei.api.recipe.IFocus<net.minecraft.item.ItemStack> focus,
int slot,
int slots) |
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 |
resetLid() |
void |
setIngredients(mezz.jei.api.ingredients.IIngredients ingredients)
Gets all the recipe's ingredients by filling out an instance of
IIngredients. |
public final DungeonEntry chest
public DungeonWrapper(DungeonEntry chest)
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 int amountOfItems(mezz.jei.api.recipe.IFocus<net.minecraft.item.ItemStack> focus)
public java.util.List<net.minecraft.item.ItemStack> getItems(mezz.jei.api.recipe.IFocus<net.minecraft.item.ItemStack> focus,
int slot,
int slots)
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 void onTooltip(int slotIndex,
boolean input,
@Nonnull
net.minecraft.item.ItemStack ingredient,
@Nonnull
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 void resetLid()