public interface IRecipeLayoutDrawable extends IRecipeLayout
IRecipeLayout
for addons that want to draw the layouts themselves somewhere.
Create an instance with IRecipeRegistry.createRecipeLayoutDrawable(IRecipeCategory, IRecipeWrapper, IFocus)
Modifier and Type | Method and Description |
---|---|
void |
draw(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY)
Draw the recipe layout.
|
java.lang.Object |
getIngredientUnderMouse(int mouseX,
int mouseY)
Returns the ingredient currently under the mouse, if there is one.
|
boolean |
isMouseOver(int mouseX,
int 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, getIngredientsGroup, getItemStacks, setRecipeTransferButton
void setPosition(int posX, int posY)
IRecipeCategory.getBackground()
.void draw(net.minecraft.client.Minecraft minecraft, int mouseX, int mouseY)
boolean isMouseOver(int mouseX, int mouseY)
@Nullable java.lang.Object getIngredientUnderMouse(int mouseX, int mouseY)