Interface IIngredientComponentHandler<VT extends IValueType<V>,V extends IValue,T,M>
- Type Parameters:
VT- The value type.V- The value.T- The instance type.M- The matching condition parameter.
@Deprecated
public interface IIngredientComponentHandler<VT extends IValueType<V>,V extends IValue,T,M>
Deprecated.
Handles the translation between
IngredientComponent instances and IValue.-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.default net.minecraft.network.chat.ComponenttoCompactString(V ingredientValue) Deprecated.Convert the given list of values to a compact string.toInstance(V value) Deprecated.Convert a value to an instance.Deprecated.Convert an instance to a value.
-
Method Details
-
getValueType
VT getValueType()Deprecated.- Returns:
- The value type with which the component should be handled.
-
getComponent
Deprecated.- Returns:
- The recipe component.
-
toValue
Deprecated.Convert an instance to a value.- Parameters:
instance- A recipe component instance.- Returns:
- A value.
-
toInstance
Deprecated.Convert a value to an instance.- Parameters:
value- A value.- Returns:
- A recipe component instance.
-
toCompactString
Deprecated.Convert the given list of values to a compact string. To be used in things like tooltips.- Parameters:
ingredientValue- A list of ingredient values.- Returns:
- A compact string representation.
-