Update JEI integration

This commit is contained in:
Vecoo 2025-03-03 22:31:42 +11:00
parent cb096ae6a8
commit ddd0108a90

View File

@ -42,10 +42,25 @@ public class SiegeWorkbenchRecipeCategory implements IRecipeCategory<SiegeWorkbe
return Component.translatable("category." + SiegeMachines.ID + ".siege_workbench_crafting"); return Component.translatable("category." + SiegeMachines.ID + ".siege_workbench_crafting");
} }
// @Override @Override
// public IDrawable getBackground() { public int getWidth() {
// return this.background; IDrawable background = this.background;
// } if (background == null) {
throw new IllegalStateException("getWidth() and getHeight() must be overridden if background is null");
} else {
return background.getWidth();
}
}
@Override
public int getHeight() {
IDrawable background = this.background;
if (background == null) {
throw new IllegalStateException("getWidth() and getHeight() must be overridden if background is null");
} else {
return background.getHeight();
}
}
@Override @Override
public IDrawable getIcon() { public IDrawable getIcon() {