public interface IIngredientRenderer<T>
If you have a new type of ingredient to add to JEI, you will have to implement this in order to use
IModIngredientRegistration.register(Class, Collection, IIngredientHelper, IIngredientRenderer)
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.gui.FontRenderer |
getFontRenderer(net.minecraft.client.Minecraft minecraft,
T ingredient)
Get the tooltip font renderer for this ingredient.
|
java.util.List<java.lang.String> |
getTooltip(net.minecraft.client.Minecraft minecraft,
T ingredient)
Get the tooltip text for this ingredient.
|
void |
render(net.minecraft.client.Minecraft minecraft,
int xPosition,
int yPosition,
T ingredient)
Renders an ingredient at a specific location.
|
void render(net.minecraft.client.Minecraft minecraft,
int xPosition,
int yPosition,
@Nullable
T ingredient)
minecraft - The minecraft instance.xPosition - The x position to render the ingredient.yPosition - The y position to render the ingredient.ingredient - the ingredient to render. May be null, some renderers (like fluid tanks) will render a
background even if there is no ingredient.java.util.List<java.lang.String> getTooltip(net.minecraft.client.Minecraft minecraft,
T ingredient)
minecraft - The minecraft instance.ingredient - The ingredient to get the tooltip for.net.minecraft.client.gui.FontRenderer getFontRenderer(net.minecraft.client.Minecraft minecraft,
T ingredient)
minecraft - The minecraft instance.ingredient - The ingredient to get the tooltip for.