public class IngredientGridWithNavigation extends java.lang.Object implements IShowsRecipeFocuses, IGhostIngredientDragSource
Constructor and Description |
---|
IngredientGridWithNavigation(IIngredientGridSource ingredientSource,
IFilterTextSource filterTextSource,
GuiScreenHelper guiScreenHelper,
IngredientGrid ingredientGrid,
IWorldConfig worldConfig) |
Modifier and Type | Method and Description |
---|---|
boolean |
canSetFocusWithMouse() |
protected boolean |
checkHotbarKeys(net.minecraft.client.util.InputMappings.Input input)
Modeled after ContainerScreen#checkHotbarKeys(int)
Sets the stack in a hotbar slot to the one that's hovered over.
|
void |
draw(net.minecraft.client.Minecraft minecraft,
com.mojang.blaze3d.matrix.MatrixStack matrixStack,
int mouseX,
int mouseY,
float partialTicks) |
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) |
IMouseHandler |
getMouseHandler() |
java.util.List<IIngredientListElement<?>> |
getVisibleElements() |
boolean |
isMouseOver(double mouseX,
double mouseY) |
boolean |
onKeyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
updateBounds(net.minecraft.client.renderer.Rectangle2d availableArea,
java.util.Set<net.minecraft.client.renderer.Rectangle2d> guiExclusionAreas) |
void |
updateLayout(boolean resetToFirstPage) |
public IngredientGridWithNavigation(IIngredientGridSource ingredientSource, IFilterTextSource filterTextSource, GuiScreenHelper guiScreenHelper, IngredientGrid ingredientGrid, IWorldConfig worldConfig)
public void updateLayout(boolean resetToFirstPage)
public boolean updateBounds(net.minecraft.client.renderer.Rectangle2d availableArea, java.util.Set<net.minecraft.client.renderer.Rectangle2d> guiExclusionAreas)
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, float partialTicks)
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 IMouseHandler getMouseHandler()
public boolean onKeyPressed(int keyCode, int scanCode, int modifiers)
protected boolean checkHotbarKeys(net.minecraft.client.util.InputMappings.Input input)
@Nullable public IClickedIngredient<?> getIngredientUnderMouse(double mouseX, double mouseY)
getIngredientUnderMouse
in interface IGhostIngredientDragSource
getIngredientUnderMouse
in interface IShowsRecipeFocuses
@Nullable public IIngredientListElement<?> getElementUnderMouse()
public boolean canSetFocusWithMouse()
canSetFocusWithMouse
in interface IShowsRecipeFocuses
public java.util.List<IIngredientListElement<?>> getVisibleElements()