Class RecipeBookGui
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.recipebook.RecipeBookGui
- All Implemented Interfaces:
IGuiEventListener,IRenderable,IRecipeUpdateListener,IRecipePlacer<Ingredient>
- Direct Known Subclasses:
AbstractRecipeBookGui
public class RecipeBookGui
extends AbstractGui
implements IRenderable, IGuiEventListener, IRecipeUpdateListener, IRecipePlacer<Ingredient>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ITextComponentprivate ClientRecipeBookprotected ToggleWidgetprotected final GhostRecipeprivate intprivate booleanprivate Stringprotected RecipeBookContainer<?>protected Minecraftprivate static final ITextComponentprotected static final ResourceLocationprivate final RecipeBookPageprivate static final ITextComponentprivate TextFieldWidgetprivate RecipeTabToggleWidgetprivate final RecipeItemHelperprivate final List<RecipeTabToggleWidget>private intprivate intprivate intFields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemToSlot(Iterator<Ingredient> p_201500_1_, int p_201500_2_, int p_201500_3_, int p_201500_4_, int p_201500_5_) booleanchangeFocus(boolean p_231049_1_) booleancharTyped(char p_231042_1_, int p_231042_2_) private voidprivate ITextComponentprotected ITextComponentbooleanhasClickedOutside(double p_195604_1_, double p_195604_3_, int p_195604_5_, int p_195604_6_, int p_195604_7_, int p_195604_8_, int p_195604_9_) voidinit(int p_201520_1_, int p_201520_2_, Minecraft p_201520_3_, boolean p_201520_4_, RecipeBookContainer<?> p_201520_5_) protected voidvoidinitVisuals(boolean p_201518_1_) booleanisMouseOver(double p_231047_1_, double p_231047_3_) private booleanbooleanbooleankeyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) booleankeyReleased(int p_223281_1_, int p_223281_2_, int p_223281_3_) booleanmouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) private voidpirateSpeechForThePeople(String p_193716_1_) voidrecipesShown(List<IRecipe<?>> p_193001_1_) voidvoidremoved()voidrender(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) voidrenderGhostRecipe(MatrixStack p_230477_1_, int p_230477_2_, int p_230477_3_, boolean p_230477_4_, float p_230477_5_) private voidrenderGhostRecipeTooltip(MatrixStack p_238925_1_, int p_238925_2_, int p_238925_3_, int p_238925_4_, int p_238925_5_) voidrenderTooltip(MatrixStack p_238924_1_, int p_238924_2_, int p_238924_3_, int p_238924_4_, int p_238924_5_) protected voidvoidsetupGhostRecipe(IRecipe<?> p_193951_1_, List<Slot> p_193951_2_) protected voidsetVisible(boolean p_193006_1_) voidslotClicked(Slot p_191874_1_) voidtick()private booleanvoidprivate voidupdateCollections(boolean p_193003_1_) intupdateScreenPosition(boolean p_193011_1_, int p_193011_2_, int p_193011_3_) private voidprivate voidMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.item.crafting.IRecipePlacer
placeRecipe
-
Field Details
-
RECIPE_BOOK_LOCATION
-
SEARCH_HINT
-
ONLY_CRAFTABLES_TOOLTIP
-
ALL_RECIPES_TOOLTIP
-
xOffset
private int xOffset -
width
private int width -
height
private int height -
ghostRecipe
-
tabButtons
-
selectedTab
-
filterButton
-
minecraft
-
searchBox
-
lastSearch
-
book
-
recipeBookPage
-
stackedContents
-
timesInventoryChanged
private int timesInventoryChanged -
ignoreTextInput
private boolean ignoreTextInput
-
-
Constructor Details
-
RecipeBookGui
public RecipeBookGui()
-
-
Method Details
-
init
public void init(int p_201520_1_, int p_201520_2_, Minecraft p_201520_3_, boolean p_201520_4_, RecipeBookContainer<?> p_201520_5_) -
initVisuals
public void initVisuals(boolean p_201518_1_) -
changeFocus
public boolean changeFocus(boolean p_231049_1_) - Specified by:
changeFocusin interfaceIGuiEventListener
-
initFilterButtonTextures
protected void initFilterButtonTextures() -
removed
public void removed() -
updateScreenPosition
public int updateScreenPosition(boolean p_193011_1_, int p_193011_2_, int p_193011_3_) -
toggleVisibility
public void toggleVisibility() -
isVisible
public boolean isVisible() -
setVisible
protected void setVisible(boolean p_193006_1_) -
slotClicked
-
updateCollections
private void updateCollections(boolean p_193003_1_) -
updateTabs
private void updateTabs() -
tick
public void tick() -
updateStackedContents
private void updateStackedContents() -
render
- Specified by:
renderin interfaceIRenderable
-
renderTooltip
public void renderTooltip(MatrixStack p_238924_1_, int p_238924_2_, int p_238924_3_, int p_238924_4_, int p_238924_5_) -
getFilterButtonTooltip
-
getRecipeFilterName
-
renderGhostRecipeTooltip
private void renderGhostRecipeTooltip(MatrixStack p_238925_1_, int p_238925_2_, int p_238925_3_, int p_238925_4_, int p_238925_5_) -
renderGhostRecipe
public void renderGhostRecipe(MatrixStack p_230477_1_, int p_230477_2_, int p_230477_3_, boolean p_230477_4_, float p_230477_5_) -
mouseClicked
public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_) - Specified by:
mouseClickedin interfaceIGuiEventListener
-
toggleFiltering
private boolean toggleFiltering() -
hasClickedOutside
public boolean hasClickedOutside(double p_195604_1_, double p_195604_3_, int p_195604_5_, int p_195604_6_, int p_195604_7_, int p_195604_8_, int p_195604_9_) -
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressedin interfaceIGuiEventListener
-
keyReleased
public boolean keyReleased(int p_223281_1_, int p_223281_2_, int p_223281_3_) - Specified by:
keyReleasedin interfaceIGuiEventListener
-
charTyped
public boolean charTyped(char p_231042_1_, int p_231042_2_) - Specified by:
charTypedin interfaceIGuiEventListener
-
isMouseOver
public boolean isMouseOver(double p_231047_1_, double p_231047_3_) - Specified by:
isMouseOverin interfaceIGuiEventListener
-
checkSearchStringUpdate
private void checkSearchStringUpdate() -
pirateSpeechForThePeople
-
isOffsetNextToMainGUI
private boolean isOffsetNextToMainGUI() -
recipesUpdated
public void recipesUpdated() -
recipesShown
- Specified by:
recipesShownin interfaceIRecipeUpdateListener
-
setupGhostRecipe
-
addItemToSlot
public void addItemToSlot(Iterator<Ingredient> p_201500_1_, int p_201500_2_, int p_201500_3_, int p_201500_4_, int p_201500_5_) - Specified by:
addItemToSlotin interfaceIRecipePlacer<Ingredient>
-
sendUpdateSettings
protected void sendUpdateSettings()
-