May 27, 20223 yr 30 minutes ago, Luis_ST said: is this the size of the image file or the size of the screen inside the image
May 27, 20223 yr Author the size of the photo is 256 by 256, but the size of the window inside is the one that I indicated
May 27, 20223 yr you could try 256 for both values, but im not sure which value you have to set there since the vanilla default values are 176 (imageWidth) and 166 (imageHeight)
May 27, 20223 yr Author https://ibb.co/tZ64qP2 this is 256 size in both values i need change slots positions or add offset for, but how... Edited May 27, 20223 yr by Zaksen
May 27, 20223 yr Author https://ibb.co/PhvQRVp i fix this private void addPlayerInventory(Inventory playerInv) { for(int i = 0; i < 3; ++i) { for(int l = 0; l < 9; ++l) { this.addSlot(new Slot(playerInv, l + i * 9 + 9, 8 + l * 18, 66 + i * 18)); } } } private void addPlayerHotbar(Inventory playerInventory) { for(int i = 0; i < 9; ++i) { this.addSlot(new Slot(playerInventory, i, (8 + i * 18), 124)); } }
May 27, 20223 yr Author i change this Just now, Zaksen said: this.addSlot(new Slot(playerInv, l + i * 9 + 9, 8 + l * 18, 66 + i * 18)); and this Just now, Zaksen said: this.addSlot(new Slot(playerInventory, i, (8 + i * 18), 124));
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.