public class DebugIngredientRenderer extends java.lang.Object implements IIngredientRenderer<DebugIngredient>
Constructor and Description |
---|
DebugIngredientRenderer(IIngredientHelper<DebugIngredient> ingredientHelper) |
Modifier and Type | Method and Description |
---|---|
java.util.List<net.minecraft.util.text.ITextComponent> |
getTooltip(DebugIngredient ingredient,
net.minecraft.client.util.ITooltipFlag tooltipFlag)
Get the tooltip text for this ingredient.
|
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int xPosition,
int yPosition,
DebugIngredient ingredient)
Renders an ingredient at a specific location.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFontRenderer
public DebugIngredientRenderer(IIngredientHelper<DebugIngredient> ingredientHelper)
public void render(com.mojang.blaze3d.matrix.MatrixStack matrixStack, int xPosition, int yPosition, @Nullable DebugIngredient ingredient)
IIngredientRenderer
render
in interface IIngredientRenderer<DebugIngredient>
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 apublic java.util.List<net.minecraft.util.text.ITextComponent> getTooltip(DebugIngredient ingredient, net.minecraft.client.util.ITooltipFlag tooltipFlag)
IIngredientRenderer
getTooltip
in interface IIngredientRenderer<DebugIngredient>
ingredient
- The ingredient to get the tooltip for.tooltipFlag
- Whether to show advanced information on item tooltips, toggled by F3+H