public class DebugIngredientRenderer extends java.lang.Object implements IIngredientRenderer<DebugIngredient>
| Constructor and Description |
|---|
DebugIngredientRenderer() |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.gui.FontRenderer |
getFontRenderer(net.minecraft.client.Minecraft minecraft,
DebugIngredient ingredient)
Get the tooltip font renderer for this ingredient.
|
java.util.List<java.lang.String> |
getTooltip(net.minecraft.client.Minecraft minecraft,
DebugIngredient ingredient)
Get the tooltip text for this ingredient.
|
void |
render(net.minecraft.client.Minecraft minecraft,
int xPosition,
int yPosition,
DebugIngredient ingredient)
Renders an ingredient at a specific location.
|
public void render(net.minecraft.client.Minecraft minecraft,
int xPosition,
int yPosition,
@Nullable
DebugIngredient ingredient)
IIngredientRendererrender in interface IIngredientRenderer<DebugIngredient>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.public java.util.List<java.lang.String> getTooltip(net.minecraft.client.Minecraft minecraft,
DebugIngredient ingredient)
IIngredientRenderergetTooltip in interface IIngredientRenderer<DebugIngredient>minecraft - The minecraft instance.ingredient - The ingredient to get the tooltip for.public net.minecraft.client.gui.FontRenderer getFontRenderer(net.minecraft.client.Minecraft minecraft,
DebugIngredient ingredient)
IIngredientRenderergetFontRenderer in interface IIngredientRenderer<DebugIngredient>minecraft - The minecraft instance.ingredient - The ingredient to get the tooltip for.