Add method to directly set DrawableResource for HandlerInfo builder (#440)

This commit is contained in:
miozune authored and GitHub committed 2023-11-08 18:03:42 +09:00
1 parent 0c61e559ec
commit 0c5af2b892
1 file changed
+6
@@ -131,6 +131,12 @@ public class HandlerInfo {
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;