public class GuiRecipeBook extends Gui implements IGuiEventListener, IRecipeUpdateListener, IRecipePlacer<Ingredient>
Modifier and Type | Field and Description |
---|---|
protected ContainerRecipeBook |
field_201522_g |
protected GhostRecipe |
ghostRecipe |
protected Minecraft |
mc |
protected static ResourceLocation |
RECIPE_BOOK |
protected RecipeBookClient |
recipeBook |
protected RecipeBookPage |
recipeBookPage |
protected RecipeItemHelper |
stackedContents |
protected GuiButtonToggle |
toggleRecipesBtn |
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiRecipeBook() |
Modifier and Type | Method and Description |
---|---|
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_,
ContainerRecipeBook p_201520_5_) |
protected boolean |
func_201521_f() |
protected void |
func_205702_a() |
protected java.lang.String |
func_205703_f() |
boolean |
isVisible() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
boolean |
keyReleased(int p_keyReleased_1_,
int p_keyReleased_2_,
int p_keyReleased_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 mouseX,
int mouseY,
float partialTicks) |
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() |
void |
toggleVisibility() |
int |
updateScreenPosition(boolean p_193011_1_,
int p_193011_2_,
int p_193011_3_) |
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canFocus, focusChanged, mouseDragged, mouseReleased, mouseScrolled
placeRecipe
protected static final ResourceLocation RECIPE_BOOK
protected final GhostRecipe ghostRecipe
protected GuiButtonToggle toggleRecipesBtn
protected ContainerRecipeBook field_201522_g
protected Minecraft mc
protected RecipeBookClient 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_, ContainerRecipeBook p_201520_5_)
public void func_201518_a(boolean p_201518_1_)
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 mouseX, int mouseY, float partialTicks)
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 func_201521_f()
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_keyReleased_1_, int p_keyReleased_2_, int p_keyReleased_3_)
keyReleased
in interface IGuiEventListener
public boolean charTyped(char p_charTyped_1_, int p_charTyped_2_)
charTyped
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()