Fix Collapsed Recipes in Bookmarks (#905)

This commit is contained in:
slprime authored and GitHub committed 2026-03-31 20:47:23 +03:00
1 parent 10a3109714
commit bcc25d4369
10 files changed
+59 -48

No files matched your search

@@ -30,6 +30,7 @@ public class HandlerInfo {
private boolean multipleWidgetsAllowed = false;
private boolean showFavoritesButton = true;
private boolean showOverlayButton = true;
private boolean showChanceInfo = true;
private boolean useCustomScroll = false;
private ItemStack itemStack = null;
@@ -142,6 +143,14 @@ public class HandlerInfo {
this.showOverlayButton = showOverlayButton;
}
public boolean getShowChanceInfo() {
return this.showChanceInfo;
}
public void setShowChanceInfo(boolean showChanceInfo) {
this.showChanceInfo = showChanceInfo;
}
public boolean getUseCustomScroll() {
return this.useCustomScroll;
}
@@ -216,6 +225,11 @@ public class HandlerInfo {
return this;
}
public Builder setShowChanceInfo(boolean showChanceInfo) {
this.info.showChanceInfo = showChanceInfo;
return this;
}
@Deprecated
public Builder setMaxRecipesPerPage(int maxRecipesPerPage) {
this.info.multipleWidgetsAllowed = maxRecipesPerPage > 1;