public class RecipesGui extends net.minecraft.client.gui.GuiScreen implements IShowsRecipeFocuses, IMouseHandler
| Constructor and Description |
|---|
RecipesGui() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformed(net.minecraft.client.gui.GuiButton guibutton) |
void |
back() |
void |
close() |
void |
draw(int mouseX,
int mouseY) |
void |
drawBackground() |
Focus |
getFocusUnderMouse(int mouseX,
int mouseY) |
boolean |
handleMouseClicked(int mouseX,
int mouseY,
int mouseButton) |
boolean |
handleMouseScrolled(int mouseX,
int mouseY,
int scrollDelta) |
void |
initGui(net.minecraft.client.Minecraft minecraft) |
boolean |
isMouseOver(int mouseX,
int mouseY) |
boolean |
isOpen() |
void |
open() |
void |
setWorldAndResolution(net.minecraft.client.Minecraft mc,
int width,
int height)
Fire our own RecipesGuiInitEvent instead of Forge's GuiInitEvent to avoid confusion.
|
void |
showRecipes(Focus focus) |
void |
showUses(Focus focus) |
confirmClicked, doesGuiPauseGame, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawHoveringText, drawScreen, drawWorldBackground, func_183500_a, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, initGui, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, keyTyped, mouseClicked, mouseClickMove, mouseReleased, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setText, updateScreenpublic void initGui(@Nonnull
net.minecraft.client.Minecraft minecraft)
public void setWorldAndResolution(net.minecraft.client.Minecraft mc,
int width,
int height)
setWorldAndResolution in class net.minecraft.client.gui.GuiScreenpublic boolean isMouseOver(int mouseX,
int mouseY)
isMouseOver in interface IMouseHandler@Nullable public Focus getFocusUnderMouse(int mouseX, int mouseY)
getFocusUnderMouse in interface IShowsRecipeFocusespublic boolean handleMouseClicked(int mouseX,
int mouseY,
int mouseButton)
handleMouseClicked in interface IMouseHandlerpublic boolean handleMouseScrolled(int mouseX,
int mouseY,
int scrollDelta)
handleMouseScrolled in interface IMouseHandlerpublic void open()
open in interface ICloseablepublic void close()
close in interface ICloseablepublic boolean isOpen()
isOpen in interface ICloseablepublic void showRecipes(@Nonnull
Focus focus)
public void showUses(@Nonnull
Focus focus)
public void back()
protected void actionPerformed(@Nonnull
net.minecraft.client.gui.GuiButton guibutton)
actionPerformed in class net.minecraft.client.gui.GuiScreenpublic void draw(int mouseX,
int mouseY)
public void drawBackground()