public class ForgeModIdHelper extends AbstractModIdHelper
Constructor and Description |
---|
ForgeModIdHelper(IClientConfig config,
ModIdFormattingConfig modIdFormattingConfig) |
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.
|
java.lang.String |
getFormattedModNameForModId(java.lang.String modId)
Returns the mod name with color formatting, as specified in JEI's config.
|
java.lang.String |
getModNameForModId(java.lang.String modId)
Get the mod name for its modId
|
boolean |
isDisplayingModNameEnabled()
Returns true if JEI is configured to display mod names.
|
public ForgeModIdHelper(IClientConfig config, ModIdFormattingConfig modIdFormattingConfig)
public java.lang.String getModNameForModId(java.lang.String modId)
IModIdHelper
public boolean isDisplayingModNameEnabled()
IModIdHelper
public java.lang.String getFormattedModNameForModId(java.lang.String modId)
IModIdHelper
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
addModNameToIngredientTooltip
in class AbstractModIdHelper