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)
IModIdHelperpublic boolean isDisplayingModNameEnabled()
IModIdHelperpublic java.lang.String getFormattedModNameForModId(java.lang.String modId)
IModIdHelperpublic <T> java.util.List<net.minecraft.util.text.ITextComponent> addModNameToIngredientTooltip(java.util.List<net.minecraft.util.text.ITextComponent> tooltip,
T ingredient,
IIngredientHelper<T> ingredientHelper)
IModIdHelperIModIdHelper.isDisplayingModNameEnabled() is false,
this will just return the tooltip without adding the mod name.addModNameToIngredientTooltip in interface IModIdHelperaddModNameToIngredientTooltip in class AbstractModIdHelper