Class RecipeBookPage
- java.lang.Object
-
- net.minecraft.client.gui.recipebook.RecipeBookPage
-
public class RecipeBookPage extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ToggleWidget
backButton
private java.util.List<RecipeWidget>
buttons
private int
currentPage
private ToggleWidget
forwardButton
private RecipeWidget
hoveredButton
private IRecipe<?>
lastClickedRecipe
private RecipeList
lastClickedRecipeCollection
private Minecraft
minecraft
private RecipeOverlayGui
overlay
private RecipeBook
recipeBook
private java.util.List<RecipeList>
recipeCollections
private java.util.List<IRecipeUpdateListener>
showListeners
private int
totalPages
-
Constructor Summary
Constructors Constructor Description RecipeBookPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(RecipeBookGui p_193732_1_)
IRecipe<?>
getLastClickedRecipe()
RecipeList
getLastClickedRecipeCollection()
Minecraft
getMinecraft()
RecipeBook
getRecipeBook()
void
init(Minecraft p_194194_1_, int p_194194_2_, int p_194194_3_)
boolean
mouseClicked(double p_198955_1_, double p_198955_3_, int p_198955_5_, int p_198955_6_, int p_198955_7_, int p_198955_8_, int p_198955_9_)
void
recipesShown(java.util.List<IRecipe<?>> p_194195_1_)
void
render(MatrixStack p_238927_1_, int p_238927_2_, int p_238927_3_, int p_238927_4_, int p_238927_5_, float p_238927_6_)
void
renderTooltip(MatrixStack p_238926_1_, int p_238926_2_, int p_238926_3_)
void
setInvisible()
private void
updateArrowButtons()
private void
updateButtonsForPage()
void
updateCollections(java.util.List<RecipeList> p_194192_1_, boolean p_194192_2_)
-
-
-
Field Detail
-
buttons
private final java.util.List<RecipeWidget> buttons
-
hoveredButton
private RecipeWidget hoveredButton
-
overlay
private final RecipeOverlayGui overlay
-
minecraft
private Minecraft minecraft
-
showListeners
private final java.util.List<IRecipeUpdateListener> showListeners
-
recipeCollections
private java.util.List<RecipeList> recipeCollections
-
forwardButton
private ToggleWidget forwardButton
-
backButton
private ToggleWidget backButton
-
totalPages
private int totalPages
-
currentPage
private int currentPage
-
recipeBook
private RecipeBook recipeBook
-
lastClickedRecipe
private IRecipe<?> lastClickedRecipe
-
lastClickedRecipeCollection
private RecipeList lastClickedRecipeCollection
-
-
Method Detail
-
init
public void init(Minecraft p_194194_1_, int p_194194_2_, int p_194194_3_)
-
addListener
public void addListener(RecipeBookGui p_193732_1_)
-
updateCollections
public void updateCollections(java.util.List<RecipeList> p_194192_1_, boolean p_194192_2_)
-
updateButtonsForPage
private void updateButtonsForPage()
-
updateArrowButtons
private void updateArrowButtons()
-
render
public void render(MatrixStack p_238927_1_, int p_238927_2_, int p_238927_3_, int p_238927_4_, int p_238927_5_, float p_238927_6_)
-
renderTooltip
public void renderTooltip(MatrixStack p_238926_1_, int p_238926_2_, int p_238926_3_)
-
getLastClickedRecipe
@Nullable public IRecipe<?> getLastClickedRecipe()
-
getLastClickedRecipeCollection
@Nullable public RecipeList getLastClickedRecipeCollection()
-
setInvisible
public void setInvisible()
-
mouseClicked
public boolean mouseClicked(double p_198955_1_, double p_198955_3_, int p_198955_5_, int p_198955_6_, int p_198955_7_, int p_198955_8_, int p_198955_9_)
-
recipesShown
public void recipesShown(java.util.List<IRecipe<?>> p_194195_1_)
-
getMinecraft
public Minecraft getMinecraft()
-
getRecipeBook
public RecipeBook getRecipeBook()
-
-