Refactor DebugHandlerWidget (#900)

This commit is contained in:
slprime authored and GitHub committed 2026-03-22 14:10:10 +02:00
1 parent 6ed0be7961
commit 0ba14091fb
16 files changed
+890 -743

No files matched your search

@@ -45,13 +45,13 @@ public class HandlerInfo {
@Deprecated
public void setHandlerDimensions(int height, int width, int maxRecipesPerPage) {
setHandlerDimensions(width, height, maxRecipesPerPage > 1);
setHandlerDimensions(width, height);
setMultipleWidgetsAllowed(maxRecipesPerPage > 1);
}
public void setHandlerDimensions(int width, int height, boolean multipleWidgetsAllowed) {
public void setHandlerDimensions(int width, int height) {
this.height = height;
this.width = width;
this.multipleWidgetsAllowed = multipleWidgetsAllowed;
}
public boolean setItem(String itemId, String nbtString) {
@@ -102,6 +102,10 @@ public class HandlerInfo {
return this.multipleWidgetsAllowed ? Integer.MAX_VALUE : 1;
}
public void setMultipleWidgetsAllowed(boolean multipleWidgetsAllowed) {
this.multipleWidgetsAllowed = multipleWidgetsAllowed;
}
public boolean isMultipleWidgetsAllowed() {
return this.multipleWidgetsAllowed;
}