Skip to content

Commit

Permalink
Ensure default ofItem/Block... helper methods do not override automat…
Browse files Browse the repository at this point in the history
…ic menu dropdown width
  • Loading branch information
andre111 committed Nov 22, 2023
1 parent f6f6f20 commit f43e6c9
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,11 +361,11 @@ public int getDropBoxMaxHeight() {
}

public static SelectionCellCreator<ResourceLocation> ofItemIdentifier() {
return ofItemIdentifier(20, 146, 7);
return ofItemIdentifier(20, -1, 7);
}

public static SelectionCellCreator<ResourceLocation> ofItemIdentifier(int maxItems) {
return ofItemIdentifier(20, 146, maxItems);
return ofItemIdentifier(20, -1, maxItems);
}

public static SelectionCellCreator<ResourceLocation> ofItemIdentifier(int cellHeight, int cellWidth, int maxItems) {
Expand Down Expand Up @@ -410,11 +410,11 @@ public int getDropBoxMaxHeight() {


public static SelectionCellCreator<ResourceLocation> ofBlockIdentifier() {
return ofBlockIdentifier(20, 146, 7);
return ofBlockIdentifier(20, -1, 7);
}

public static SelectionCellCreator<ResourceLocation> ofBlockIdentifier(int maxItems) {
return ofBlockIdentifier(20, 146, maxItems);
return ofBlockIdentifier(20, -1, maxItems);
}

public static SelectionCellCreator<ResourceLocation> ofBlockIdentifier(int cellHeight, int cellWidth, int maxItems) {
Expand Down Expand Up @@ -458,11 +458,11 @@ public int getDropBoxMaxHeight() {
}

public static SelectionCellCreator<Item> ofItemObject() {
return ofItemObject(20, 146, 7);
return ofItemObject(20, -1, 7);
}

public static SelectionCellCreator<Item> ofItemObject(int maxItems) {
return ofItemObject(20, 146, maxItems);
return ofItemObject(20, -1, maxItems);
}

public static SelectionCellCreator<Item> ofItemObject(int cellHeight, int cellWidth, int maxItems) {
Expand Down Expand Up @@ -506,11 +506,11 @@ public int getDropBoxMaxHeight() {
}

public static SelectionCellCreator<Block> ofBlockObject() {
return ofBlockObject(20, 146, 7);
return ofBlockObject(20, -1, 7);
}

public static SelectionCellCreator<Block> ofBlockObject(int maxItems) {
return ofBlockObject(20, 146, maxItems);
return ofBlockObject(20, -1, maxItems);
}

public static SelectionCellCreator<Block> ofBlockObject(int cellHeight, int cellWidth, int maxItems) {
Expand Down

0 comments on commit f43e6c9

Please sign in to comment.