Erreur : EnumArmorMaterial.java de Craftbukkit

NiCoLaS4658

Aventurier
27 Octobre 2011
41
4
3
26
J'ai un problème, je suis en train de modder des armures pour mon serveur. J'ai donc utilisé le fichier craftbukkit (mc-dev depuis Git) EnumArmorMaterial et Eclipse me marque une erreur, bloquant donc la compilation.

Code:
package net.minecraft.server;
 
public enum EnumArmorMaterial {
 
    CLOTH("CLOTH", 0, 5, new int[] { 1, 3, 2, 1}, 15), IRON("CHAIN", 1, 15, new int[] { 2, 5, 4, 1}, 12), CHAIN("IRON", 2, 15, new int[] { 2, 6, 5, 2}, 9), GOLD("GOLD", 3, 7, new int[] { 2, 5, 3, 1}, 25), DIAMOND("DIAMOND", 4, 33, new int[] { 3, 8, 6, 3}, 10), OBSIDIAN("OBSIDIAN", 5, 70, new int[] { 6, 16, 12, 6}, 25), EMERALD("EMERALD", 6, 150, new int[] { 2, 6, 5, 2}, 50);
    private int f;
    private int[] g;
    private int h;
 
    private static final EnumArmorMaterial[] i = new EnumArmorMaterial[] { CLOTH, IRON, CHAIN, GOLD, DIAMOND, OBSIDIAN, EMERALD};
 
    private EnumArmorMaterial(String s, int i, int j, int[] aint, int k) {
        this.f = j;
        this.g = aint;
        this.h = k;
    }
 
    public int a(int i) {
        return ItemArmor.n() [i] * this.f;
    }
 
    public int b(int i) {
        return this.g[i];
    }
 
    public int a() {
        return this.h;
    }
}

L'erreur est située au niveau du "return ItemArmor.n() * this"
Elle est située au niveau du n et Eclipse n'arrive pas à la corriger.

Avez-vous des solutions ? Merci d'avance,
NiCoLaS4658