Can anyone help me figure out why this texture is not getting loaded and it is just showing the black and purple background?
private final ItemStack itemStack;
public ItemSlotButtonWidget(int x, int y, int width, int height, ButtonTextures textures, PressAction onPress, ItemStack itemStack, Text tooltip) {
super(x, y, width, height, textures, onPress, Text.empty());
this.itemStack = itemStack;
this.setTooltip(Tooltip.of(tooltip));
}
@Override
public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta) {
super.renderWidget(context, mouseX, mouseY, delta);
if (this.itemStack != null && !this.itemStack.isEmpty()) {
ItemRenderer itemRenderer = MinecraftClient.getInstance().getItemRenderer();
int itemX = this.getX() + (this.width - 16) / 2;
int itemY = this.getY() + (this.height - 16) / 2;
context.drawItem(this.itemStack, itemX, itemY);
}
}
}```
```private static final Identifier BASE = Identifier.tryParse("bazaarutils", "widgets/widget_normal.png");
private static final Identifier HOVER = Identifier.tryParse("bazaarutils", "widgets/widget_hover.png");
public static final ButtonTextures SLOT_BUTTON_TEXTURES = new ButtonTextures(
BASE,
HOVER);```
```ItemSlotButtonWidget button = new ItemSlotButtonWidget(
buttonX,
currentButtonY,
buttonSize, buttonSize,
Bookmark.SLOT_BUTTON_TEXTURES,
(btn) -> {blah blah},
itemForButton,
Text.of(bookmark.getName())
);```
resources/assets/bazaarutils/textures/gui/sprites/widget/xxxx.png is the directory