Class RecipeBookPage
java.lang.Object
net.minecraft.client.gui.screens.recipebook.RecipeBookPage
-
Field Summary
Modifier and TypeFieldDescriptionprivate StateSwitchingButton
private final List
<RecipeButton> private int
private StateSwitchingButton
private RecipeButton
static final int
private RecipeHolder
<?> private RecipeCollection
private Minecraft
private final OverlayRecipeComponent
private static final WidgetSprites
private static final WidgetSprites
private RecipeBook
private List
<RecipeCollection> private final List
<RecipeShownListener> private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(RecipeBookComponent p_100433_) RecipeHolder
<?> 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<RecipeHolder<?>> p_100435_) void
render
(GuiGraphics p_281416_, int p_281888_, int p_281904_, int p_282278_, int p_282424_, float p_281712_) void
renderTooltip
(GuiGraphics p_283690_, int p_282626_, int p_282490_) 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:
-
PAGE_FORWARD_SPRITES
-
PAGE_BACKWARD_SPRITES
-
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(GuiGraphics p_281416_, int p_281888_, int p_281904_, int p_282278_, int p_282424_, float p_281712_) -
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
-