Problème compilation 1.8

sebenforce

Architecte en herbe
27 Février 2013
158
9
125
27
Bonjour,

J'ai réaliser un armor HUD en 1.8 tout fonctionne bien sous eclipse mais dès que je compile et que je mets les .class dans mon .jar mon HUD n'apparait pas en jeu.
Voici mon code :
Code:
private void showHUD(FontRenderer var8) {
       
        ItemStack casque = this.mc.thePlayer.inventory.armorItemInSlot(3);
        ItemStack plastron = this.mc.thePlayer.inventory.armorItemInSlot(2);
        ItemStack pantalon = this.mc.thePlayer.inventory.armorItemInSlot(1);
        ItemStack bottes = this.mc.thePlayer.inventory.armorItemInSlot(0);
        ItemStack main = this.mc.thePlayer.inventory.getCurrentItem();
        int j = 0;
        if (/** this.mc.displayHUD && **/
        !this.mc.gameSettings.showDebugInfo) {
            int var6;
            String var7;
            String thePotion;

            if (casque != null) {
                var6 = this.mc.thePlayer.inventory.armorItemInSlot(3)
                        .getMaxDamage()
                        - this.mc.thePlayer.inventory.armorItemInSlot(3)
                                .getItemDamage();
                var7 = "";

                if (var6 <= 50) {
                    var7 = "\u00a7c";
                }

                thePotion = var7 + var6;
                var8.drawString(thePotion, 20, 7, 16777215);
                drawItemStack( casque, 2, 2 + 18 * j, null);
                GL11.glDisable(GL11.GL_LIGHTING);
                ++j;
            }
           
            if (plastron != null) {
                var6 = this.mc.thePlayer.inventory.armorItemInSlot(2)
                        .getMaxDamage()
                        - this.mc.thePlayer.inventory.armorItemInSlot(2)
                                .getItemDamage();
                var7 = "";

                if (var6 <= 50) {
                    var7 = "\u00a7c";
                }

                thePotion = var7 + var6;
                var8.drawString(thePotion, 20, 7 + 18 * j, 16777215);
                drawItemStack( plastron, 2, 2 + 18 * j, null);
                GL11.glDisable(GL11.GL_LIGHTING);
                ++j;
            }

            if (pantalon != null) {
                var6 = this.mc.thePlayer.inventory.armorItemInSlot(1)
                        .getMaxDamage()
                        - this.mc.thePlayer.inventory.armorItemInSlot(1)
                                .getItemDamage();
                var7 = "";

                if (var6 <= 50) {
                    var7 = "\u00a7c";
                }

                thePotion = var7 + var6;
                var8.drawString(thePotion, 20, 7 + 18 * j, 16777215);
                drawItemStack( pantalon, 2, 2 + 18 * j, null);
                GL11.glDisable(GL11.GL_LIGHTING);
                ++j;
            }

            if (bottes != null) {
                var6 = this.mc.thePlayer.inventory.armorItemInSlot(0)
                        .getMaxDamage()
                        - this.mc.thePlayer.inventory.armorItemInSlot(0)
                                .getItemDamage();
                var7 = "";

                if (var6 <= 50) {
                    var7 = "\u00a7c";
                }

                thePotion = var7 + var6;
                var8.drawString(thePotion, 20, 7 + 18 * j, 16777215);
                drawItemStack(bottes, 2, 2 + 18 * j, null);
                GL11.glDisable(GL11.GL_LIGHTING);
                ++j;
            }

            if (main != null && (main.getItem() instanceof ItemSword
                            || main.getItem() instanceof ItemBow
                           
                            || main.getItem() instanceof ItemPickaxe
                            || main.getItem() instanceof ItemSpade
                            || main.getItem() instanceof ItemHoe
                            || main.getItem() instanceof ItemAxe
                            || main.getItem() instanceof ItemTool
                            || main.getItem() instanceof ItemFlintAndSteel
                            || main.getItem() instanceof ItemShears)) {
               
                var6 = this.mc.thePlayer.inventory.getCurrentItem()
                        .getMaxDamage()
                        - this.mc.thePlayer.inventory.getCurrentItem()
                                .getItemDamage();
                var7 = "";

                if (var6 <= 50) {
                    var7 = "\u00a7c";
                }

                thePotion = var7 + var6;
                var8.drawString(thePotion, 20, 7 + 18 * j, 16777215);
                drawItemStack(main, 2, 2 + 18 * j, null);
                GL11.glDisable(GL11.GL_LIGHTING);
                ++j;
            }

            if (!this.mc.thePlayer.getActivePotionEffects().isEmpty()) {
                for (Iterator<?> var12 = this.mc.thePlayer
                        .getActivePotionEffects().iterator(); var12.hasNext(); ++j) {
                    PotionEffect var15 = (PotionEffect) var12.next();
                    Potion var14 = Potion.potionTypes[var15.getPotionID()];
                    this.mc.getTextureManager().bindTexture(inventoryPath);

                    if (var14.hasStatusIcon()) {
                        int stringPotion = var14.getStatusIconIndex();
                        this.drawTexturedModalRect(1, 2 + 18 * j,
                                0 + stringPotion % 8 * 18,
                                198 + stringPotion / 8 * 18, 18, 18);
                    }

                    String var13 = Potion.getDurationString(var15);

                    if (plastron != null
                            && var14.getName().equals("potion.resistance")) {
                        var13 = "\u221e";
                    }

                    if (bottes != null && var14.getName().equals("potion.jump")) {
                        var13 = "\u221e";
                    }

                    var8.drawString(var13, 21, 8 + 18 * j, 16777215);
                }
            }
        }
    }

Merci d'avance.