Posted March 5, 201411 yr Ok, I know kind of how to go about rescaling it, but I'm not sure if it will automatically change it's position every time I resize the window. Here's the gui at testing resolution: And here's the gui at fullscreen resolution: Finally, here's my Container class: package realmoffera.container; import java.util.Random; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.Container; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.Slot; public class ContainerInventoryPP extends Container { private IInventory inventory; public int ingredients; public ContainerInventoryPP(IInventory inventory) { this.addSlotToContainer(new Slot(inventory, 0, -114, -26)); ingredients = new Random().nextInt(10); System.err.println("Ingredients: " + ingredients); } @Override public boolean canInteractWith(EntityPlayer var1) { return true; } } Kain
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.