public abstract class AbstractModIdHelper extends java.lang.Object implements IModIdHelper
Constructor and Description |
---|
AbstractModIdHelper() |
Modifier and Type | Method and Description |
---|---|
<T> java.util.List<net.minecraft.util.text.ITextComponent> |
addModNameToIngredientTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
T ingredient,
IIngredientHelper<T> ingredientHelper)
Adds the mod name to the tooltip with color formatting.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormattedModNameForModId, getModNameForModId, isDisplayingModNameEnabled
public <T> java.util.List<net.minecraft.util.text.ITextComponent> addModNameToIngredientTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip, T ingredient, IIngredientHelper<T> ingredientHelper)
IModIdHelper
IModIdHelper.isDisplayingModNameEnabled()
is false,
this will just return the tooltip without adding the mod name.addModNameToIngredientTooltip
in interface IModIdHelper