public class GuiRecipeBook extends Gui implements IRecipeUpdateListener
Modifier and Type | Field and Description |
---|---|
private InventoryCrafting |
craftingSlots |
private GuiButtonRecipeTab |
currentTab |
private GhostRecipe |
ghostRecipe |
private int |
height |
private java.lang.String |
lastSearch |
private Minecraft |
mc |
protected static ResourceLocation |
RECIPE_BOOK |
private RecipeBook |
recipeBook |
private RecipeBookPage |
recipeBookPage |
private java.util.List<GuiButtonRecipeTab> |
recipeTabs |
private GuiTextField |
searchBar |
private RecipeItemHelper |
stackedContents |
private int |
timesInventoryChanged |
private GuiButtonToggle |
toggleRecipesBtn |
private int |
width |
private int |
xOffset |
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiRecipeBook() |
Modifier and Type | Method and Description |
---|---|
void |
func_194303_a(int p_194303_1_,
int p_194303_2_,
Minecraft p_194303_3_,
boolean p_194303_4_,
InventoryCrafting p_194303_5_) |
boolean |
hasClickedOutside(int p_193955_1_,
int p_193955_2_,
int p_193955_3_,
int p_193955_4_,
int p_193955_5_,
int p_193955_6_) |
void |
initVisuals(boolean p_193014_1_,
InventoryCrafting p_193014_2_) |
private boolean |
isOffsetNextToMainGUI() |
boolean |
isVisible() |
boolean |
keyPressed(char typedChar,
int keycode) |
boolean |
mouseClicked(int p_191862_1_,
int p_191862_2_,
int p_191862_3_) |
private void |
pirateRecipe(java.lang.String text) |
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_) |
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_) |
private void |
sendUpdateSettings() |
void |
setupGhostRecipe(IRecipe p_193951_1_,
java.util.List<Slot> p_193951_2_) |
private void |
setVisible(boolean p_193006_1_) |
void |
slotClicked(Slot slotIn) |
void |
tick() |
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 |
updateStackedContents() |
private void |
updateTabs() |
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
protected static final ResourceLocation RECIPE_BOOK
private int xOffset
private int width
private int height
private final GhostRecipe ghostRecipe
private final java.util.List<GuiButtonRecipeTab> recipeTabs
private GuiButtonRecipeTab currentTab
private GuiButtonToggle toggleRecipesBtn
private InventoryCrafting craftingSlots
private Minecraft mc
private GuiTextField searchBar
private java.lang.String lastSearch
private RecipeBook recipeBook
private final RecipeBookPage recipeBookPage
private RecipeItemHelper stackedContents
private int timesInventoryChanged
public void func_194303_a(int p_194303_1_, int p_194303_2_, Minecraft p_194303_3_, boolean p_194303_4_, InventoryCrafting p_194303_5_)
public void initVisuals(boolean p_193014_1_, InventoryCrafting p_193014_2_)
public void removed()
public int updateScreenPosition(boolean p_193011_1_, int p_193011_2_, int p_193011_3_)
public void toggleVisibility()
public boolean isVisible()
private 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 mouseX, int mouseY, float partialTicks)
public void renderTooltip(int p_191876_1_, int p_191876_2_, int p_191876_3_, int p_191876_4_)
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(int p_191862_1_, int p_191862_2_, int p_191862_3_)
public boolean hasClickedOutside(int p_193955_1_, int p_193955_2_, int p_193955_3_, int p_193955_4_, int p_193955_5_, int p_193955_6_)
public boolean keyPressed(char typedChar, int keycode)
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_)
private void sendUpdateSettings()