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,
IEditModeConfig editModeConfig,
IIngredientFilterConfig ingredientFilterConfig,
IClientConfig clientConfig,
IWorldConfig worldConfig,
GuiScreenHelper guiScreenHelper,
RecipesGui recipesGui) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSetFocusWithMouse() |
void |
draw(net.minecraft.client.Minecraft minecraft,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY) |
void |
drawTooltips(net.minecraft.client.Minecraft minecraft,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY) |
net.minecraft.client.renderer.Rectangle2d |
getArea() |
IIngredientListElement<?> |
getElementUnderMouse() |
IClickedIngredient<?> |
getIngredientUnderMouse(double mouseX,
double mouseY) |
boolean |
handleMouseClicked(double mouseX,
double mouseY) |
boolean |
isMouseOver(double mouseX,
double mouseY) |
int |
size() |
boolean |
updateBounds(net.minecraft.client.renderer.Rectangle2d availableArea,
int minWidth,
java.util.Collection<net.minecraft.client.renderer.Rectangle2d> exclusionAreas) |
public static final int INGREDIENT_WIDTH
public static final int INGREDIENT_HEIGHT
protected final IngredientListBatchRenderer guiIngredientSlots
public IngredientGrid(GridAlignment alignment, IEditModeConfig editModeConfig, IIngredientFilterConfig ingredientFilterConfig, IClientConfig clientConfig, IWorldConfig worldConfig, GuiScreenHelper guiScreenHelper, RecipesGui recipesGui)
public int size()
public boolean updateBounds(net.minecraft.client.renderer.Rectangle2d availableArea,
int minWidth,
java.util.Collection<net.minecraft.client.renderer.Rectangle2d> exclusionAreas)
public net.minecraft.client.renderer.Rectangle2d getArea()
public void draw(net.minecraft.client.Minecraft minecraft,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY)
public void drawTooltips(net.minecraft.client.Minecraft minecraft,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY)
public boolean isMouseOver(double mouseX,
double mouseY)
public boolean handleMouseClicked(double mouseX,
double mouseY)
@Nullable public IIngredientListElement<?> getElementUnderMouse()
@Nullable public IClickedIngredient<?> getIngredientUnderMouse(double mouseX, double mouseY)
getIngredientUnderMouse in interface IShowsRecipeFocusespublic boolean canSetFocusWithMouse()
canSetFocusWithMouse in interface IShowsRecipeFocuses