public class MobWrapper
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 |
|---|
MobWrapper(MobEntry mob) |
| 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.
|
LootDrop[] |
getDrops() |
net.minecraft.entity.LivingEntity |
getMob() |
net.minecraft.item.ItemStack |
getSpawnEgg() |
java.util.List<net.minecraft.util.text.ITextComponent> |
getToolTip(net.minecraft.item.ItemStack stack) |
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipStrings(double mouseX,
double mouseY)
Get the tooltip for whatever's under the mouse.
|
boolean |
hasSpawnEgg() |
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 MobWrapper(MobEntry mob)
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 LootDrop[] 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>public net.minecraft.entity.LivingEntity getMob()
public java.util.List<net.minecraft.util.text.ITextComponent> getToolTip(net.minecraft.item.ItemStack stack)
public boolean hasSpawnEgg()
public net.minecraft.item.ItemStack getSpawnEgg()