I tried to create an object, but there were problems. I went into the class and there was this:
public ItemDisplayWidget(Minecraft minecraft, int i, int j, int k, int l, Component component, ItemStack itemStack, boolean bl, boolean bl2) {
super(0, 0, k, l, component);
this.minecraft = minecraft;
this.offsetX = i;
this.offsetY = j;
this.itemStack = itemStack;
this.decorations = bl;
this.tooltip = bl2;
}
Why are x,y always 0,0?