public class DebugIngredientHelper extends java.lang.Object implements IIngredientHelper<DebugIngredient>
| Constructor and Description |
|---|
DebugIngredientHelper() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DebugIngredient> |
expandSubtypes(java.util.List<DebugIngredient> ingredients)
Expands any wildcard ingredients into all its subtypes.
|
java.lang.Iterable<java.awt.Color> |
getColors(DebugIngredient ingredient)
Get the main colors of this ingredient.
|
java.lang.String |
getDisplayName(DebugIngredient ingredient)
Display name used for searching.
|
java.lang.String |
getErrorInfo(DebugIngredient ingredient)
Get information for error messages involving this ingredient.
|
DebugIngredient |
getMatch(java.lang.Iterable<DebugIngredient> ingredients,
DebugIngredient ingredientToMatch)
Find a matching ingredient from a group of them.
|
java.lang.String |
getModId(DebugIngredient ingredient)
Return the modId of the mod that created this ingredient.
|
java.lang.String |
getUniqueId(DebugIngredient ingredient)
Unique ID for use in comparing, blacklisting, and looking up ingredients.
|
java.lang.String |
getWildcardId(DebugIngredient ingredient)
Wildcard ID for use in comparing, blacklisting, and looking up ingredients.
|
public java.util.List<DebugIngredient> expandSubtypes(java.util.List<DebugIngredient> ingredients)
IIngredientHelperexpandSubtypes in interface IIngredientHelper<DebugIngredient>@Nullable public DebugIngredient getMatch(java.lang.Iterable<DebugIngredient> ingredients, DebugIngredient ingredientToMatch)
IIngredientHelpergetMatch in interface IIngredientHelper<DebugIngredient>public java.lang.String getDisplayName(DebugIngredient ingredient)
IIngredientHelpergetDisplayName in interface IIngredientHelper<DebugIngredient>public java.lang.String getUniqueId(DebugIngredient ingredient)
IIngredientHelpergetUniqueId in interface IIngredientHelper<DebugIngredient>public java.lang.String getWildcardId(DebugIngredient ingredient)
IIngredientHelpergetWildcardId in interface IIngredientHelper<DebugIngredient>public java.lang.String getModId(DebugIngredient ingredient)
IIngredientHelpergetModId in interface IIngredientHelper<DebugIngredient>public java.lang.Iterable<java.awt.Color> getColors(DebugIngredient ingredient)
IIngredientHelpergetColors in interface IIngredientHelper<DebugIngredient>public java.lang.String getErrorInfo(DebugIngredient ingredient)
IIngredientHelpergetErrorInfo in interface IIngredientHelper<DebugIngredient>