@FunctionalInterface
public interface ITooltipCallback<T>
IGuiIngredientGroup.addTooltipCallback(ITooltipCallback).
Note that this works on anything that implements IGuiIngredientGroup, like IGuiItemStackGroup and IGuiFluidStackGroup.| Modifier and Type | Method and Description |
|---|---|
void |
onTooltip(int slotIndex,
boolean input,
T ingredient,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip)
Change the tooltip for an ingredient.
|
void onTooltip(int slotIndex,
boolean input,
T ingredient,
java.util.List<net.minecraft.util.text.ITextComponent> tooltip)