public class IngredientGrid extends java.lang.Object implements IShowsRecipeFocuses
Modifier and Type | Field and Description |
---|---|
protected IngredientListBatchRenderer |
guiIngredientSlots |
static int |
INGREDIENT_HEIGHT |
static int |
INGREDIENT_WIDTH |
Constructor and Description |
---|
IngredientGrid(GridAlignment alignment) |
Modifier and Type | Method and Description |
---|---|
boolean |
canSetFocusWithMouse() |
void |
draw(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY) |
void |
drawTooltips(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY) |
java.awt.Rectangle |
getArea() |
IIngredientListElement |
getElementUnderMouse() |
IClickedIngredient<?> |
getIngredientUnderMouse(int mouseX,
int mouseY) |
boolean |
handleMouseClicked(int mouseX,
int mouseY) |
boolean |
isMouseOver(int mouseX,
int mouseY) |
int |
size() |
boolean |
updateBounds(java.awt.Rectangle availableArea,
int minWidth,
java.util.Collection<java.awt.Rectangle> exclusionAreas) |
public static final int INGREDIENT_WIDTH
public static final int INGREDIENT_HEIGHT
protected final IngredientListBatchRenderer guiIngredientSlots
public IngredientGrid(GridAlignment alignment)
public int size()
public boolean updateBounds(java.awt.Rectangle availableArea, int minWidth, java.util.Collection<java.awt.Rectangle> exclusionAreas)
public java.awt.Rectangle getArea()
public void draw(net.minecraft.client.Minecraft minecraft, int mouseX, int mouseY)
public void drawTooltips(net.minecraft.client.Minecraft minecraft, int mouseX, int mouseY)
public boolean isMouseOver(int mouseX, int mouseY)
public boolean handleMouseClicked(int mouseX, int mouseY)
@Nullable public IIngredientListElement getElementUnderMouse()
@Nullable public IClickedIngredient<?> getIngredientUnderMouse(int mouseX, int mouseY)
getIngredientUnderMouse
in interface IShowsRecipeFocuses
public boolean canSetFocusWithMouse()
canSetFocusWithMouse
in interface IShowsRecipeFocuses