public interface IRecipeLayoutDrawable extends IRecipeLayout
IRecipeLayout
for addons that want to draw the layouts themselves somewhere.
Create an instance with IRecipeManager.createRecipeLayoutDrawable(IRecipeCategory, Object, IFocus)
.Modifier and Type | Method and Description |
---|---|
void |
drawOverlays(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY)
Draw the recipe overlays such as item tool tips.
|
void |
drawRecipe(com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY)
Draw the recipe without overlays such as item tool tips.
|
java.lang.Object |
getIngredientUnderMouse(int mouseX,
int mouseY)
Returns the ingredient currently under the mouse, if there is one.
|
boolean |
isMouseOver(double mouseX,
double mouseY)
Returns true if the mouse is hovering over the recipe.
|
void |
setPosition(int posX,
int posY)
Set the position of the recipe layout in screen coordinates.
|
getFluidStacks, getFocus, getFocus, getIngredientsGroup, getItemStacks, getRecipeCategory, moveRecipeTransferButton, setShapeless
void setPosition(int posX, int posY)
IRecipeCategory.getBackground()
.void drawRecipe(com.mojang.blaze3d.matrix.MatrixStack matrixStack, int mouseX, int mouseY)
void drawOverlays(com.mojang.blaze3d.matrix.MatrixStack matrixStack, int mouseX, int mouseY)
boolean isMouseOver(double mouseX, double mouseY)
@Nullable java.lang.Object getIngredientUnderMouse(int mouseX, int mouseY)