@FunctionalInterface
public interface IIngredientSubtypeInterpreter<T>
IIngredientSubtypeInterpreter
and registering it with JEI in
ISubtypeRegistration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NONE |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
apply(T ingredient,
UidContext context)
Get the data from an ingredient that is relevant to telling subtypes apart in the given context.
|
static final java.lang.String NONE
java.lang.String apply(T ingredient, UidContext context)
UidContext
can be used to give different subtype information depending on the given context.
Most cases will return the same value for all contexts and it can usually be ignored.
Return NONE
if there is no data used for subtypes.