public interface IGuiIngredient<T>
IRecipeTransferHandler and some other advanced cases.
Get these from IGuiIngredientGroup.getGuiIngredients().| Modifier and Type | Method and Description |
|---|---|
void |
drawHighlight(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int color,
int xOffset,
int yOffset)
Draws a highlight on background of this ingredient.
|
java.util.List<T> |
getAllIngredients()
All ingredient variations that can be shown.
|
T |
getDisplayedIngredient()
The ingredient variation that is shown at this moment.
|
boolean |
isInput()
Returns true if this ingredient is an input for the recipe, otherwise it is an output.
|
@Nullable T getDisplayedIngredient()
java.util.List<T> getAllIngredients()
boolean isInput()
void drawHighlight(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int color,
int xOffset,
int yOffset)