Skip to content

Commit

Permalink
Add method to directly set DrawableResource for HandlerInfo builder (G…
Browse files Browse the repository at this point in the history
  • Loading branch information
miozune authored Nov 8, 2023
1 parent 0c61e55 commit 0c5af2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/codechicken/nei/recipe/HandlerInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ public Builder setDisplayStack(ItemStack stack) {
return this;
}

public Builder setDisplayImage(DrawableResource drawable) {
info.itemStack = null;
info.image = drawable;
return this;
}

public Builder setDisplayImage(ResourceLocation location, int imageX, int imageY, int imageWidth,
int imageHeight) {
info.itemStack = null;
Expand Down

0 comments on commit 0c5af2b

Please sign in to comment.