Jump to content

Recommended Posts

Posted

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:

Phbe8qF.png

 

And here's the gui at fullscreen resolution:

1OsKaHo.png

 

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.