6 mai 2016, 17:13

j’ai essayer mais j’ai pas trouver ^^


package com.adamitemod.mod;

import net.minecraft.client.gui.inventory.GuiContainer;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.util.ResourceLocation;

import org.lwjgl.opengl.GL11;

public class GuiMachineCraft extends GuiContainer {

  private static final ResourceLocation GuiAdamiteCraft = new ResourceLocation("adamitemod","textures/gui/craft.png");
   @SuppressWarnings("unused")
private TileEntityMachineCraft tileCompressor;
   private IInventory playerInv;

public GuiMachineCraft(TileEntityMachineCraft tile, InventoryPlayer inventory) 
{
super(new ContainerMachineCraft(tile, inventory));
       this.tileCompressor = tile;
       this.playerInv = inventory;
       this.allowUserInput = false;
       this.ySize = 256;
       this.xSize = 256;
}

@Override
protected void drawGuiContainerBackgroundLayer(float partialRenderTick, int x, int y) 
{

GL11.glColor4f(1.0F, 1.5F, 1.0F, 1.0F);
       mc.getTextureManager().bindTexture(GuiAdamiteCraft);
       int k = (width - xSize) / 2;
       int l = (height - ySize) / 2;
       drawTexturedModalRect(k, 3, 0, 0, xSize, ySize);
       if(tileCompressor.isBurning());

}

protected void drawGuiContainerForegroundLayer(int x, int y)
   {
       this.fontRendererObj.drawString(this.playerInv.hasCustomInventoryName() ? this.playerInv.getInventoryName() : I18n.format(this.playerInv.getInventoryName()), 10, this.ySize - 98, 4210752);
   }

}

je me suis pencher sur sa moi

GL11.glColor4f(1.0F, 1.5F, 1.0F, 1.0F);
       mc.getTextureManager().bindTexture(GuiAdamiteCraft);
       int k = (width - xSize) / 2;
       int l = (height - ySize) / 2;
       drawTexturedModalRect(k, 3, 0, 0, xSize, ySize);
       if(tileCompressor.isBurning());