public class RecipeBookGui extends AbstractGui implements IRenderable, IGuiEventListener, IRecipeUpdateListener, IRecipePlacer<Ingredient>
Modifier and Type | Field and Description |
---|---|
private RecipeTabToggleWidget |
currentTab |
private boolean |
field_199738_u |
protected RecipeBookContainer<?> |
field_201522_g |
protected GhostRecipe |
ghostRecipe |
private int |
height |
private java.lang.String |
lastSearch |
protected Minecraft |
mc |
protected static ResourceLocation |
RECIPE_BOOK |
protected ClientRecipeBook |
recipeBook |
protected RecipeBookPage |
recipeBookPage |
private java.util.List<RecipeTabToggleWidget> |
recipeTabs |
private TextFieldWidget |
searchBar |
protected RecipeItemHelper |
stackedContents |
private int |
timesInventoryChanged |
protected ToggleWidget |
toggleRecipesBtn |
private int |
width |
private int |
xOffset |
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
RecipeBookGui() |
Modifier and Type | Method and Description |
---|---|
boolean |
changeFocus(boolean p_changeFocus_1_) |
boolean |
charTyped(char p_charTyped_1_,
int p_charTyped_2_) |
boolean |
func_195604_a(double mouseX,
double mouseY,
int guiLeft,
int guiTop,
int xSize,
int ySize,
int mouseButton) |
protected void |
func_205702_a() |
protected java.lang.String |
func_205703_f() |
void |
init(int widthIn,
int heightIn,
Minecraft minecraftIn,
boolean widthTooNarrowIn,
RecipeBookContainer<?> containerIn) |
void |
initSearchBar(boolean widthTooNarrowIn) |
boolean |
isMouseOver(double p_isMouseOver_1_,
double p_isMouseOver_3_) |
private boolean |
isOffsetNextToMainGUI() |
boolean |
isVisible() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
boolean |
keyReleased(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
private void |
pirateRecipe(java.lang.String text) |
void |
recipesShown(java.util.List<IRecipe<?>> recipes) |
void |
recipesUpdated() |
void |
removed() |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
void |
renderGhostRecipe(int p_191864_1_,
int p_191864_2_,
boolean p_191864_3_,
float p_191864_4_) |
private void |
renderGhostRecipeTooltip(int p_193015_1_,
int p_193015_2_,
int p_193015_3_,
int p_193015_4_) |
void |
renderTooltip(int p_191876_1_,
int p_191876_2_,
int p_191876_3_,
int p_191876_4_) |
protected void |
sendUpdateSettings() |
void |
setSlotContents(java.util.Iterator<Ingredient> ingredients,
int slotIn,
int maxAmount,
int y,
int x) |
void |
setupGhostRecipe(IRecipe<?> p_193951_1_,
java.util.List<Slot> p_193951_2_) |
protected void |
setVisible(boolean p_193006_1_) |
void |
slotClicked(Slot slotIn) |
void |
tick() |
protected boolean |
toggleCraftableFilter() |
void |
toggleVisibility() |
private void |
updateCollections(boolean p_193003_1_) |
int |
updateScreenPosition(boolean p_193011_1_,
int p_193011_2_,
int p_193011_3_) |
private void |
updateSearch() |
private void |
updateStackedContents() |
private void |
updateTabs() |
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseDragged, mouseMoved, mouseReleased, mouseScrolled
placeRecipe
protected static final ResourceLocation RECIPE_BOOK
private int xOffset
private int width
private int height
protected final GhostRecipe ghostRecipe
private final java.util.List<RecipeTabToggleWidget> recipeTabs
private RecipeTabToggleWidget currentTab
protected ToggleWidget toggleRecipesBtn
protected RecipeBookContainer<?> field_201522_g
protected Minecraft mc
private TextFieldWidget searchBar
private java.lang.String lastSearch
protected ClientRecipeBook recipeBook
protected final RecipeBookPage recipeBookPage
protected final RecipeItemHelper stackedContents
private int timesInventoryChanged
private boolean field_199738_u
public void init(int widthIn, int heightIn, Minecraft minecraftIn, boolean widthTooNarrowIn, RecipeBookContainer<?> containerIn)
public void initSearchBar(boolean widthTooNarrowIn)
public boolean changeFocus(boolean p_changeFocus_1_)
changeFocus
in interface IGuiEventListener
protected void func_205702_a()
public void removed()
public int updateScreenPosition(boolean p_193011_1_, int p_193011_2_, int p_193011_3_)
public void toggleVisibility()
public boolean isVisible()
protected void setVisible(boolean p_193006_1_)
public void slotClicked(@Nullable Slot slotIn)
private void updateCollections(boolean p_193003_1_)
private void updateTabs()
public void tick()
private void updateStackedContents()
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
public void renderTooltip(int p_191876_1_, int p_191876_2_, int p_191876_3_, int p_191876_4_)
protected java.lang.String func_205703_f()
private void renderGhostRecipeTooltip(int p_193015_1_, int p_193015_2_, int p_193015_3_, int p_193015_4_)
public void renderGhostRecipe(int p_191864_1_, int p_191864_2_, boolean p_191864_3_, float p_191864_4_)
public boolean mouseClicked(double p_mouseClicked_1_, double p_mouseClicked_3_, int p_mouseClicked_5_)
mouseClicked
in interface IGuiEventListener
protected boolean toggleCraftableFilter()
public boolean func_195604_a(double mouseX, double mouseY, int guiLeft, int guiTop, int xSize, int ySize, int mouseButton)
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
keyPressed
in interface IGuiEventListener
public boolean keyReleased(int keyCode, int scanCode, int modifiers)
keyReleased
in interface IGuiEventListener
public boolean charTyped(char p_charTyped_1_, int p_charTyped_2_)
charTyped
in interface IGuiEventListener
public boolean isMouseOver(double p_isMouseOver_1_, double p_isMouseOver_3_)
isMouseOver
in interface IGuiEventListener
private void updateSearch()
private void pirateRecipe(java.lang.String text)
private boolean isOffsetNextToMainGUI()
public void recipesUpdated()
public void recipesShown(java.util.List<IRecipe<?>> recipes)
recipesShown
in interface IRecipeUpdateListener
public void setupGhostRecipe(IRecipe<?> p_193951_1_, java.util.List<Slot> p_193951_2_)
public void setSlotContents(java.util.Iterator<Ingredient> ingredients, int slotIn, int maxAmount, int y, int x)
setSlotContents
in interface IRecipePlacer<Ingredient>
protected void sendUpdateSettings()