diff --git a/src/main/java/codechicken/nei/recipe/HandlerInfo.java b/src/main/java/codechicken/nei/recipe/HandlerInfo.java index 83323a89..571a4f4f 100644 --- a/src/main/java/codechicken/nei/recipe/HandlerInfo.java +++ b/src/main/java/codechicken/nei/recipe/HandlerInfo.java @@ -27,8 +27,6 @@ public class HandlerInfo { private int height = DEFAULT_HEIGHT; private int width = DEFAULT_WIDTH; - @Deprecated - private int maxRecipesPerPage = DEFAULT_MAX_PER_PAGE; private boolean multipleWidgetsAllowed = false; private boolean showFavoritesButton = true; private boolean showOverlayButton = true; @@ -161,6 +159,10 @@ public class HandlerInfo { this(handlerClazz.getName(), modName, modId); } + public Builder setDisplayStack(String itemId, String nbtString) { + return setDisplayStack(NEIServerUtils.getModdedItem(itemId, nbtString)); + } + public Builder setDisplayStack(ItemStack stack) { this.info.image = null; this.info.itemStack = stack; @@ -200,6 +202,16 @@ public class HandlerInfo { return this; } + public Builder setShowOverlayButton(boolean showOverlayButton) { + this.info.showOverlayButton = showOverlayButton; + return this; + } + + public Builder setShowFavoritesButton(boolean showFavoritesButton) { + this.info.showFavoritesButton = showFavoritesButton; + return this; + } + @Deprecated public Builder setMaxRecipesPerPage(int maxRecipesPerPage) { this.info.multipleWidgetsAllowed = maxRecipesPerPage > 1;