public class RecipesGui extends net.minecraft.client.gui.GuiScreen implements mezz.jei.api.runtime.IRecipesGui, IShowsRecipeFocuses, IRecipeLogicStateListener
Constructor and Description |
---|
RecipesGui(mezz.jei.api.recipe.IRecipeManager recipeManager,
RecipeTransferManager recipeTransferManager,
IngredientManager ingredientManager) |
Modifier and Type | Method and Description |
---|---|
void |
back() |
boolean |
canSetFocusWithMouse() |
void |
close() |
boolean |
doesGuiPauseGame() |
int |
getGuiLeft() |
int |
getGuiTop() |
java.lang.Object |
getIngredientUnderMouse() |
IClickedIngredient<?> |
getIngredientUnderMouse(double mouseX,
double mouseY) |
net.minecraft.client.gui.GuiScreen |
getParentScreen() |
int |
getRecipeCatalystExtraWidth() |
int |
getXSize() |
int |
getYSize() |
void |
initGui() |
boolean |
isMouseOver(double mouseX,
double mouseY) |
boolean |
isOpen() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
boolean |
mouseScrolled(double scrollDelta) |
void |
onStateChange() |
void |
render(int mouseX,
int mouseY,
float partialTicks) |
<V> void |
show(mezz.jei.api.recipe.IFocus<V> focus) |
void |
showCategories(java.util.List<net.minecraft.util.ResourceLocation> recipeCategoryUids) |
addButton, allowCloseWithEscape, confirmResult, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getChildren, getItemToolTip, handleComponentClick, handleComponentHover, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onGuiClosed, onResize, renderToolTip, runOrMakeCrashReport, sendChatMessage, sendChatMessage, setText, setWorldAndResolution, tick
focusNext, focusOn, getFocused, mouseDragged, mouseReleased, setDragging, setFocused
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public RecipesGui(mezz.jei.api.recipe.IRecipeManager recipeManager, RecipeTransferManager recipeTransferManager, IngredientManager ingredientManager)
public int getGuiLeft()
public int getGuiTop()
public int getXSize()
public int getYSize()
public int getRecipeCatalystExtraWidth()
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class net.minecraft.client.gui.GuiScreen
public void initGui()
initGui
in class net.minecraft.client.gui.GuiScreen
public void render(int mouseX, int mouseY, float partialTicks)
render
in class net.minecraft.client.gui.GuiScreen
public boolean isMouseOver(double mouseX, double mouseY)
@Nullable public IClickedIngredient<?> getIngredientUnderMouse(double mouseX, double mouseY)
getIngredientUnderMouse
in interface IShowsRecipeFocuses
public boolean canSetFocusWithMouse()
canSetFocusWithMouse
in interface IShowsRecipeFocuses
public boolean mouseScrolled(double scrollDelta)
mouseScrolled
in interface net.minecraft.client.gui.IGuiEventListener
mouseScrolled
in interface net.minecraft.client.gui.IGuiEventListenerDeferred
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListenerDeferred
mouseClicked
in class net.minecraft.client.gui.GuiEventHandler
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
keyPressed
in interface net.minecraft.client.gui.IGuiEventListener
keyPressed
in interface net.minecraft.client.gui.IGuiEventListenerDeferred
keyPressed
in class net.minecraft.client.gui.GuiScreen
public boolean isOpen()
public void close()
close
in class net.minecraft.client.gui.GuiScreen
public <V> void show(mezz.jei.api.recipe.IFocus<V> focus)
show
in interface mezz.jei.api.runtime.IRecipesGui
public void showCategories(java.util.List<net.minecraft.util.ResourceLocation> recipeCategoryUids)
showCategories
in interface mezz.jei.api.runtime.IRecipesGui
@Nullable public java.lang.Object getIngredientUnderMouse()
getIngredientUnderMouse
in interface mezz.jei.api.runtime.IRecipesGui
public void back()
@Nullable public net.minecraft.client.gui.GuiScreen getParentScreen()
public void onStateChange()
onStateChange
in interface IRecipeLogicStateListener