public class JEIFluidMixerCategory extends java.lang.Object implements mezz.jei.api.recipe.category.IRecipeCategory<FluidMixerRecipe>
| Constructor and Description |
|---|
JEIFluidMixerCategory() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(FluidMixerRecipe recipe,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
double mouseX,
double mouseY)
Draw extras or additional info about the recipe.
|
mezz.jei.api.gui.drawable.IDrawable |
getBackground()
Returns the drawable background for a single recipe in this category.
|
mezz.jei.api.gui.drawable.IDrawable |
getIcon()
Icon for the category tab.
|
java.lang.Class<? extends FluidMixerRecipe> |
getRecipeClass() |
java.lang.String |
getTitle()
Returns the localized name for this recipe type.
|
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltipStrings(FluidMixerRecipe recipe,
double mouseX,
double mouseY)
Get the tooltip for whatever's under the mouse.
|
net.minecraft.util.ResourceLocation |
getUid()
Returns a unique ID for this recipe category.
|
void |
setIngredients(FluidMixerRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
Sets all the recipe's ingredients by filling out an instance of
IIngredients. |
void |
setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
FluidMixerRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
public net.minecraft.util.ResourceLocation getUid()
mezz.jei.api.recipe.category.IRecipeCategorygetUid in interface mezz.jei.api.recipe.category.IRecipeCategory<FluidMixerRecipe>for vanilla examplespublic java.lang.Class<? extends FluidMixerRecipe> getRecipeClass()
getRecipeClass in interface mezz.jei.api.recipe.category.IRecipeCategory<FluidMixerRecipe>public java.lang.String getTitle()
mezz.jei.api.recipe.category.IRecipeCategorygetTitle in interface mezz.jei.api.recipe.category.IRecipeCategory<FluidMixerRecipe>public mezz.jei.api.gui.drawable.IDrawable getBackground()
mezz.jei.api.recipe.category.IRecipeCategorygetBackground in interface mezz.jei.api.recipe.category.IRecipeCategory<FluidMixerRecipe>public mezz.jei.api.gui.drawable.IDrawable getIcon()
mezz.jei.api.recipe.category.IRecipeCategoryIGuiHelper.createDrawableIngredient(Object) to create a drawable from an ingredient.getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<FluidMixerRecipe>public void setIngredients(FluidMixerRecipe recipe, mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIIngredients.
This is used by JEI for lookups, to figure out what ingredients are inputs and outputs for a recipe.setIngredients in interface mezz.jei.api.recipe.category.IRecipeCategory<FluidMixerRecipe>public void setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
FluidMixerRecipe recipe,
mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeLayout properties from the recipe.setRecipe in interface mezz.jei.api.recipe.category.IRecipeCategory<FluidMixerRecipe>recipeLayout - the layout that needs its properties set.recipe - the recipe, for extra information.ingredients - the ingredients, already set earlier by IRecipeCategory.setIngredients(T, mezz.jei.api.ingredients.IIngredients)public void draw(FluidMixerRecipe recipe, com.mojang.blaze3d.matrix.MatrixStack matrixStack, double mouseX, double mouseY)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeCategory.getTooltipStrings(Object, double, double)draw in interface mezz.jei.api.recipe.category.IRecipeCategory<FluidMixerRecipe>mouseX - 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(FluidMixerRecipe recipe, double mouseX, double mouseY)
mezz.jei.api.recipe.category.IRecipeCategoryIGuiIngredientGroup.addTooltipCallback(ITooltipCallback)getTooltipStrings in interface mezz.jei.api.recipe.category.IRecipeCategory<FluidMixerRecipe>mouseX - the X position of the mouse, relative to the recipe.mouseY - the Y position of the mouse, relative to the recipe.