public class RecipesGui extends net.minecraft.client.gui.GuiScreen implements IRecipesGui, IShowsRecipeFocuses, IRecipeLogicStateListener
Constructor and Description |
---|
RecipesGui(IRecipeRegistry recipeRegistry) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(net.minecraft.client.gui.GuiButton guibutton) |
void |
back() |
boolean |
canSetFocusWithMouse() |
void |
close() |
boolean |
doesGuiPauseGame() |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
int |
getGuiLeft() |
int |
getGuiTop() |
IClickedIngredient<?> |
getIngredientUnderMouse(int mouseX,
int mouseY) |
net.minecraft.client.gui.GuiScreen |
getParentScreen() |
int |
getXSize() |
int |
getYSize() |
void |
handleMouseInput() |
void |
initGui() |
boolean |
isMouseOver(int mouseX,
int mouseY) |
boolean |
isOpen() |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
void |
onStateChange() |
<V> void |
show(IFocus<V> focus)
Show recipes for an
IFocus . |
void |
showCategories(java.util.List<java.lang.String> recipeCategoryUids)
Show entire categories of recipes.
|
void |
showRecipes(net.minecraftforge.fluids.FluidStack fluidStack)
Deprecated.
|
void |
showRecipes(net.minecraft.item.ItemStack itemStack)
Deprecated.
|
void |
showUses(net.minecraftforge.fluids.FluidStack fluidStack)
Deprecated.
|
void |
showUses(net.minecraft.item.ItemStack itemStack)
Deprecated.
|
addButton, confirmClicked, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, mouseClickMove, mouseReleased, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setGuiSize, setText, setWorldAndResolution, updateScreen
public RecipesGui(IRecipeRegistry recipeRegistry)
public int getGuiLeft()
public int getGuiTop()
public int getXSize()
public int getYSize()
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class net.minecraft.client.gui.GuiScreen
public void initGui()
initGui
in class net.minecraft.client.gui.GuiScreen
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class net.minecraft.client.gui.GuiScreen
public boolean isMouseOver(int mouseX, int mouseY)
@Nullable public IClickedIngredient<?> getIngredientUnderMouse(int mouseX, int mouseY)
getIngredientUnderMouse
in interface IShowsRecipeFocuses
public boolean canSetFocusWithMouse()
canSetFocusWithMouse
in interface IShowsRecipeFocuses
public void handleMouseInput() throws java.io.IOException
handleMouseInput
in class net.minecraft.client.gui.GuiScreen
java.io.IOException
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
mouseClicked
in class net.minecraft.client.gui.GuiScreen
java.io.IOException
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
keyTyped
in class net.minecraft.client.gui.GuiScreen
java.io.IOException
public boolean isOpen()
public void close()
public <V> void show(@Nullable IFocus<V> focus)
IRecipesGui
IFocus
.
Opens the IRecipesGui
if it is closed.show
in interface IRecipesGui
IRecipeRegistry.createFocus(IFocus.Mode, Object)
@Deprecated public void showRecipes(@Nullable net.minecraft.item.ItemStack itemStack)
IRecipesGui
ItemStack
.
Opens the IRecipesGui
if it is closed.showRecipes
in interface IRecipesGui
itemStack
- the ItemStack
result.@Deprecated public void showRecipes(@Nullable net.minecraftforge.fluids.FluidStack fluidStack)
IRecipesGui
FluidStack
.
Opens the IRecipesGui
if it is closed.showRecipes
in interface IRecipesGui
fluidStack
- the FluidStack
result.@Deprecated public void showUses(@Nullable net.minecraft.item.ItemStack itemStack)
IRecipesGui
ItemStack
as an ingredient.
Opens the IRecipesGui
if it is closed.showUses
in interface IRecipesGui
itemStack
- the ItemStack
ingredient.@Deprecated public void showUses(@Nullable net.minecraftforge.fluids.FluidStack fluidStack)
IRecipesGui
FluidStack
as an ingredient.
Opens the IRecipesGui
if it is closed.showUses
in interface IRecipesGui
fluidStack
- the FluidStack
ingredient.public void showCategories(@Nullable java.util.List<java.lang.String> recipeCategoryUids)
IRecipesGui
showCategories
in interface IRecipesGui
recipeCategoryUids
- a list of categories to display, in order. Must not be empty.public void back()
protected void actionPerformed(net.minecraft.client.gui.GuiButton guibutton)
actionPerformed
in class net.minecraft.client.gui.GuiScreen
@Nullable public net.minecraft.client.gui.GuiScreen getParentScreen()
public void onStateChange()
onStateChange
in interface IRecipeLogicStateListener