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
Modifier and TypeFieldDescriptionprivate static final ITextComponent
private ClientRecipeBook
protected ToggleWidget
protected final GhostRecipe
private int
private boolean
private String
protected RecipeBookContainer<?>
protected Minecraft
private static final ITextComponent
protected static final ResourceLocation
private final RecipeBookPage
private static final ITextComponent
private TextFieldWidget
private RecipeTabToggleWidget
private final RecipeItemHelper
private final List<RecipeTabToggleWidget>
private int
private int
private int
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItemToSlot
(Iterator<Ingredient> p_201500_1_, int p_201500_2_, int p_201500_3_, int p_201500_4_, int p_201500_5_) boolean
changeFocus
(boolean p_231049_1_) boolean
charTyped
(char p_231042_1_, int p_231042_2_) private void
private ITextComponent
protected ITextComponent
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_) void
init
(int p_201520_1_, int p_201520_2_, Minecraft p_201520_3_, boolean p_201520_4_, RecipeBookContainer<?> p_201520_5_) protected void
void
initVisuals
(boolean p_201518_1_) boolean
isMouseOver
(double p_231047_1_, double p_231047_3_) private boolean
boolean
boolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) boolean
keyReleased
(int p_223281_1_, int p_223281_2_, int p_223281_3_) boolean
mouseClicked
(double p_231044_1_, double p_231044_3_, int p_231044_5_) private void
pirateSpeechForThePeople
(String p_193716_1_) void
recipesShown
(List<IRecipe<?>> p_193001_1_) void
void
removed()
void
render
(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) void
renderGhostRecipe
(MatrixStack p_230477_1_, int p_230477_2_, int p_230477_3_, boolean p_230477_4_, float p_230477_5_) private void
renderGhostRecipeTooltip
(MatrixStack p_238925_1_, int p_238925_2_, int p_238925_3_, int p_238925_4_, int p_238925_5_) void
renderTooltip
(MatrixStack p_238924_1_, int p_238924_2_, int p_238924_3_, int p_238924_4_, int p_238924_5_) protected void
void
setupGhostRecipe
(IRecipe<?> p_193951_1_, List<Slot> p_193951_2_) protected void
setVisible
(boolean p_193006_1_) void
slotClicked
(Slot p_191874_1_) void
tick()
private boolean
void
private void
updateCollections
(boolean p_193003_1_) int
updateScreenPosition
(boolean p_193011_1_, int p_193011_2_, int p_193011_3_) private void
private void
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseDragged, mouseMoved, mouseReleased, mouseScrolled
Methods 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:
changeFocus
in 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:
render
in 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:
mouseClicked
in 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:
keyPressed
in interfaceIGuiEventListener
-
keyReleased
public boolean keyReleased(int p_223281_1_, int p_223281_2_, int p_223281_3_) - Specified by:
keyReleased
in interfaceIGuiEventListener
-
charTyped
public boolean charTyped(char p_231042_1_, int p_231042_2_) - Specified by:
charTyped
in interfaceIGuiEventListener
-
isMouseOver
public boolean isMouseOver(double p_231047_1_, double p_231047_3_) - Specified by:
isMouseOver
in interfaceIGuiEventListener
-
checkSearchStringUpdate
private void checkSearchStringUpdate() -
pirateSpeechForThePeople
-
isOffsetNextToMainGUI
private boolean isOffsetNextToMainGUI() -
recipesUpdated
public void recipesUpdated() -
recipesShown
- Specified by:
recipesShown
in 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:
addItemToSlot
in interfaceIRecipePlacer<Ingredient>
-
sendUpdateSettings
protected void sendUpdateSettings()
-