Package jeresources.jei.villager
Class VillagerWrapper
java.lang.Object
jeresources.jei.villager.VillagerWrapper
- All Implemented Interfaces:
mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
public class VillagerWrapper
extends Object
implements mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawInfo(int recipeWidth, int recipeHeight, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)Draw additional info about the recipe.intgetPossibleLevels(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus)getTrades(int level)voidsetFocus(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus)voidsetIngredients(mezz.jei.api.ingredients.IIngredients ingredients)Gets all the recipe's ingredients by filling out an instance ofIIngredients.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
getTooltipStrings, handleClick, handleInput
-
Constructor Details
-
VillagerWrapper
-
-
Method Details
-
setIngredients
public void setIngredients(@Nonnull mezz.jei.api.ingredients.IIngredients ingredients)Description copied from interface:mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionGets all the recipe's ingredients by filling out an instance ofIIngredients.- Specified by:
setIngredientsin interfacemezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
-
getTrades
-
getMaxLevel
public int getMaxLevel() -
getPossibleLevels
-
setFocus
public void setFocus(mezz.jei.api.recipe.IFocus<net.minecraft.world.item.ItemStack> focus) -
drawInfo
public void drawInfo(int recipeWidth, int recipeHeight, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)Description copied from interface:mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtensionDraw additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled byIRecipeCategoryExtension.getTooltipStrings(double, double)- Specified by:
drawInfoin interfacemezz.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.- See Also:
for a simple class for drawing things.,for useful functions.
-