public class RecipeBookGui extends AbstractGui implements IRenderable, IGuiEventListener, IRecipeUpdateListener, IRecipePlacer<Ingredient>
Modifier and Type | Field and Description |
---|---|
protected RecipeBookContainer<?> |
field_201522_g |
protected GhostRecipe |
ghostRecipe |
protected Minecraft |
mc |
protected static ResourceLocation |
RECIPE_BOOK |
protected ClientRecipeBook |
recipeBook |
protected RecipeBookPage |
recipeBookPage |
protected RecipeItemHelper |
stackedContents |
protected ToggleWidget |
toggleRecipesBtn |
BACKGROUND_LOCATION, blitOffset, 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 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 |
func_201518_a(boolean p_201518_1_) |
void |
func_201520_a(int p_201520_1_,
int p_201520_2_,
Minecraft p_201520_3_,
boolean p_201520_4_,
RecipeBookContainer<?> p_201520_5_) |
protected void |
func_205702_a() |
protected java.lang.String |
func_205703_f() |
boolean |
isMouseOver(double p_isMouseOver_1_,
double p_isMouseOver_3_) |
boolean |
isVisible() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
boolean |
keyReleased(int p_223281_1_,
int p_223281_2_,
int p_223281_3_) |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
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_) |
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() |
int |
updateScreenPosition(boolean p_193011_1_,
int p_193011_2_,
int p_193011_3_) |
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fillGradient, hLine, innerBlit, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseDragged, mouseMoved, mouseReleased, mouseScrolled
placeRecipe
protected static final ResourceLocation RECIPE_BOOK
protected final GhostRecipe ghostRecipe
protected ToggleWidget toggleRecipesBtn
protected RecipeBookContainer<?> field_201522_g
protected Minecraft mc
protected ClientRecipeBook recipeBook
protected final RecipeBookPage recipeBookPage
protected final RecipeItemHelper stackedContents
public void func_201520_a(int p_201520_1_, int p_201520_2_, Minecraft p_201520_3_, boolean p_201520_4_, RecipeBookContainer<?> p_201520_5_)
public void func_201518_a(boolean p_201518_1_)
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)
public void tick()
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()
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 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_)
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
keyPressed
in interface IGuiEventListener
public boolean keyReleased(int p_223281_1_, int p_223281_2_, int p_223281_3_)
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
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()