Package emi.dev.emi.emi.api.render
Class EmiTooltipComponents
java.lang.Object
emi.dev.emi.emi.api.render.EmiTooltipComponents
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendModName(List<TooltipComponent> components, String namespace) Appends a mod name to a list of components based on a namespace.static TooltipComponentgetAmount(EmiIngredient ingredient) static TooltipComponentgetIngredientTooltipComponent(List<? extends EmiIngredient> stacks) static TooltipComponentstatic TooltipComponentgetRecipeTooltipComponent(EmiRecipe recipe) static TooltipComponentgetRemainderTooltipComponent(EmiIngredient ingredient) static TooltipComponentA shorthand to create a tooltip component from text
-
Constructor Details
-
EmiTooltipComponents
public EmiTooltipComponents()
-
-
Method Details
-
getRecipeTooltipComponent
- Returns:
- A tooltip component that displays a provided recipe.
-
getRemainderTooltipComponent
- Returns:
- A tooltip component that displays the remainder of a provided ingredient.
-
getRecipeCostTooltipComponent
- Returns:
- A tooltip component that displays the the cost breakdown of a provided recipe.
-
getIngredientTooltipComponent
- Returns:
- A tooltip component that displays a collection of stacks to represent an ingredient
-
getAmount
- Returns:
- A tooltip component that displays the amount of a provided stack.
-
of
A shorthand to create a tooltip component from text -
appendModName
Appends a mod name to a list of components based on a namespace. Takes into consideration config options and formatting. EMI's config allows users to disable displaying mod names, so it is possible for the list of components to be unchanged.
-