Class RecipeBookPage
java.lang.Object
net.minecraft.client.gui.screens.recipebook.RecipeBookPage
-
Field Summary
Modifier and TypeFieldDescriptionprivate StateSwitchingButton
private List<RecipeButton>
private int
private StateSwitchingButton
private RecipeButton
static int
private Recipe<?>
private RecipeCollection
private Minecraft
private OverlayRecipeComponent
private RecipeBook
private List<RecipeCollection>
private List<RecipeShownListener>
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener(RecipeBookComponent p_100433_)
Recipe<?>
void
protected void
listButtons(Consumer<AbstractWidget> p_170054_)
boolean
mouseClicked(double p_100410_, double p_100411_, int p_100412_, int p_100413_, int p_100414_, int p_100415_, int p_100416_)
void
recipesShown(List<Recipe<?>> p_100435_)
void
render(PoseStack p_100422_, int p_100423_, int p_100424_, int p_100425_, int p_100426_, float p_100427_)
void
renderTooltip(PoseStack p_100418_, int p_100419_, int p_100420_)
void
private void
private void
void
updateCollections(List<RecipeCollection> p_100437_, boolean p_100438_)
-
Field Details
-
ITEMS_PER_PAGE
public static final int ITEMS_PER_PAGE- See Also:
- Constant Field Values
-
buttons
-
hoveredButton
-
overlay
-
minecraft
-
showListeners
-
recipeCollections
-
forwardButton
-
backButton
-
totalPages
private int totalPages -
currentPage
private int currentPage -
recipeBook
-
lastClickedRecipe
-
lastClickedRecipeCollection
-
-
Constructor Details
-
RecipeBookPage
public RecipeBookPage()
-
-
Method Details
-
init
-
addListener
-
updateCollections
-
updateButtonsForPage
private void updateButtonsForPage() -
updateArrowButtons
private void updateArrowButtons() -
render
public void render(PoseStack p_100422_, int p_100423_, int p_100424_, int p_100425_, int p_100426_, float p_100427_) -
renderTooltip
-
getLastClickedRecipe
-
getLastClickedRecipeCollection
-
setInvisible
public void setInvisible() -
mouseClicked
public boolean mouseClicked(double p_100410_, double p_100411_, int p_100412_, int p_100413_, int p_100414_, int p_100415_, int p_100416_) -
recipesShown
-
getMinecraft
-
getRecipeBook
-
listButtons
-