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)
IIngredientHelper
expandSubtypes
in interface IIngredientHelper<DebugIngredient>
@Nullable public DebugIngredient getMatch(java.lang.Iterable<DebugIngredient> ingredients, DebugIngredient ingredientToMatch)
IIngredientHelper
getMatch
in interface IIngredientHelper<DebugIngredient>
public java.lang.String getDisplayName(DebugIngredient ingredient)
IIngredientHelper
getDisplayName
in interface IIngredientHelper<DebugIngredient>
public java.lang.String getUniqueId(DebugIngredient ingredient)
IIngredientHelper
getUniqueId
in interface IIngredientHelper<DebugIngredient>
public java.lang.String getWildcardId(DebugIngredient ingredient)
IIngredientHelper
getWildcardId
in interface IIngredientHelper<DebugIngredient>
public java.lang.String getModId(DebugIngredient ingredient)
IIngredientHelper
getModId
in interface IIngredientHelper<DebugIngredient>
public java.lang.Iterable<java.awt.Color> getColors(DebugIngredient ingredient)
IIngredientHelper
getColors
in interface IIngredientHelper<DebugIngredient>
public java.lang.String getErrorInfo(DebugIngredient ingredient)
IIngredientHelper
getErrorInfo
in interface IIngredientHelper<DebugIngredient>