import craftz.CraftZ;
import static craftz.Utils.drawPlayerModel;
import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.util.ResourceLocation;
import org.lwjgl.opengl.GL11;
public class GuiInventory extends GuiContainer {
private final ContainerInventory container;
public GuiInventory(ContainerInventory p_i1072_1_) {
super(p_i1072_1_);
this.container = (ContainerInventory) inventorySlots;
xSize = 176;
ySize = 108;
}
@Override
protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) {
ResourceLocation texture = new ResourceLocation(MODID, "textures/gui/inventory.png");
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
this.mc.renderEngine.bindTexture(texture);
int x = (width - xSize) / 2;
int y = (height - ySize) / 2;
drawTexturedModalRect(x, y, 0, 0, xSize, ySize);
//0,0-head & body angle
drawPlayerModel(x + 51, y + 75, 30, 0, 0, this.mc.thePlayer, p_146976_1_);
/*for (int i = 0; i < 20; i++) {
container.getSlot(100 + i).yDisplayPosition = -1000;
}*/
}
@Override
public boolean doesGuiPauseGame() {
return false;
}
}