public class RecipesGui extends net.minecraft.client.gui.screen.Screen 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() |
int |
getGuiLeft() |
int |
getGuiTop() |
java.lang.Object |
getIngredientUnderMouse() |
IClickedIngredient<?> |
getIngredientUnderMouse(double mouseX,
double mouseY) |
net.minecraft.client.gui.screen.Screen |
getParentScreen() |
int |
getRecipeCatalystExtraWidth() |
int |
getXSize() |
int |
getYSize() |
void |
init(net.minecraft.client.Minecraft minecraft,
int width,
int height) |
boolean |
isMouseOver(double mouseX,
double mouseY) |
boolean |
isOpen() |
boolean |
isPauseScreen() |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int mouseButton) |
boolean |
mouseScrolled(double scrollX,
double scrollY,
double scrollDelta) |
void |
onClose() |
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, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isPaste, isSelectAll, isValidCharacterForName, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, setSize, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fillGradient, hLine, innerBlit, vLine
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 isPauseScreen()
isPauseScreen
in class net.minecraft.client.gui.screen.Screen
public void init(net.minecraft.client.Minecraft minecraft, int width, int height)
init
in class net.minecraft.client.gui.screen.Screen
public void render(int mouseX, int mouseY, float partialTicks)
render
in interface net.minecraft.client.gui.IRenderable
render
in class net.minecraft.client.gui.screen.Screen
public boolean isMouseOver(double mouseX, double mouseY)
isMouseOver
in interface net.minecraft.client.gui.IGuiEventListener
isMouseOver
in class net.minecraft.client.gui.screen.Screen
@Nullable public IClickedIngredient<?> getIngredientUnderMouse(double mouseX, double mouseY)
getIngredientUnderMouse
in interface IShowsRecipeFocuses
public boolean canSetFocusWithMouse()
canSetFocusWithMouse
in interface IShowsRecipeFocuses
public boolean mouseScrolled(double scrollX, double scrollY, double scrollDelta)
mouseScrolled
in interface net.minecraft.client.gui.IGuiEventListener
mouseScrolled
in interface net.minecraft.client.gui.INestedGuiEventHandler
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
mouseClicked
in interface net.minecraft.client.gui.IGuiEventListener
mouseClicked
in interface net.minecraft.client.gui.INestedGuiEventHandler
public boolean keyPressed(int keyCode, int scanCode, int modifiers)
keyPressed
in interface net.minecraft.client.gui.IGuiEventListener
keyPressed
in interface net.minecraft.client.gui.INestedGuiEventHandler
keyPressed
in class net.minecraft.client.gui.screen.Screen
public boolean isOpen()
public void onClose()
onClose
in class net.minecraft.client.gui.screen.Screen
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.screen.Screen getParentScreen()
public void onStateChange()
onStateChange
in interface IRecipeLogicStateListener