@Environment(value=CLIENT) public class RecipeBookResults extends Object
Modifier and Type | Field and Description |
---|---|
private RecipeAlternativesWidget |
alternatesWidget |
private MinecraftClient |
client |
private int |
currentPage |
private AnimatedResultButton |
hoveredResultButton |
private Recipe<?> |
lastClickedRecipe |
private ToggleButtonWidget |
nextPageButton |
private int |
pageCount |
private ToggleButtonWidget |
prevPageButton |
private RecipeBook |
recipeBook |
private List<RecipeDisplayListener> |
recipeDisplayListeners |
private List<AnimatedResultButton> |
resultButtons |
private RecipeResultCollection |
resultCollection |
private List<RecipeResultCollection> |
resultCollections |
Constructor and Description |
---|
RecipeBookResults() |
Modifier and Type | Method and Description |
---|---|
void |
draw(MatrixStack matrixStack,
int int2,
int int3,
int int4,
int int5,
float float2) |
void |
drawTooltip(MatrixStack matrixStack,
int int2,
int int3) |
Recipe<?> |
getLastClickedRecipe() |
RecipeResultCollection |
getLastClickedResults() |
MinecraftClient |
getMinecraftClient() |
RecipeBook |
getRecipeBook() |
void |
hideAlternates() |
private void |
hideShowPageButtons() |
void |
initialize(MinecraftClient minecraftClient,
int parentLeft,
int parentTop) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button,
int areaLeft,
int areaTop,
int areaWidth,
int areaHeight) |
void |
onRecipesDisplayed(List<Recipe<?>> list) |
private void |
refreshResultButtons() |
void |
setGui(RecipeBookWidget recipeBookWidget) |
void |
setResults(List<RecipeResultCollection> list,
boolean resetCurrentPage) |
private final List<AnimatedResultButton> resultButtons
private AnimatedResultButton hoveredResultButton
private final RecipeAlternativesWidget alternatesWidget
private MinecraftClient client
private final List<RecipeDisplayListener> recipeDisplayListeners
private List<RecipeResultCollection> resultCollections
private ToggleButtonWidget nextPageButton
private ToggleButtonWidget prevPageButton
private int pageCount
private int currentPage
private RecipeBook recipeBook
private Recipe<?> lastClickedRecipe
private RecipeResultCollection resultCollection
public void initialize(MinecraftClient minecraftClient, int parentLeft, int parentTop)
public void setGui(RecipeBookWidget recipeBookWidget)
public void setResults(List<RecipeResultCollection> list, boolean resetCurrentPage)
private void refreshResultButtons()
private void hideShowPageButtons()
public void draw(MatrixStack matrixStack, int int2, int int3, int int4, int int5, float float2)
public void drawTooltip(MatrixStack matrixStack, int int2, int int3)
@Nullable public RecipeResultCollection getLastClickedResults()
public void hideAlternates()
public boolean mouseClicked(double mouseX, double mouseY, int button, int areaLeft, int areaTop, int areaWidth, int areaHeight)
public MinecraftClient getMinecraftClient()
public RecipeBook getRecipeBook()