SolvedJava help

Posts 17 of 7 · Page 1 of 1
Java help
Hi, I get this error when recompiling.


Code:
package net.minecraft.src;


public enum EnumToolMaterial
{
    WOOD("WOOD", 0, 0, 59, 2.0F, 0),
    STONE("STONE", 1, 1, 131, 4F, 1),
    IRON("IRON", 2, 2, 250, 6F, 2),
    EMERALD("EMERALD", 3, 3, 1561, 8F, 3),
    GOLD("GOLD", 4, 0, 32, 12F, 0);
;/*
    public static EnumToolMaterial[] values()
    {
        return (EnumToolMaterial[])$VALUES.clone();
    }

    public static EnumToolMaterial valueOf(String s)
    {
        return (EnumToolMaterial)Enum.valueOf(net.minecraft.src.EnumToolMaterial.class, s);
    }

    private EnumToolMaterial(String s, int i, String s1, int j, int k, int l, float f, 
            int i1)
    {
        super(s, i);
        harvestLevel = k;
        maxUses = l;
        efficiencyOnProperMaterial = f;
        damageVsEntity = i1;
    }

    public int getMaxUses()
    {
        return maxUses;
    }

    public float getEfficiencyOnProperMaterial()
    {
        return efficiencyOnProperMaterial;
    }

    public int getDamageVsEntity()
    {
        return damageVsEntity;
    }

    public int getHarvestLevel()
    {
        return harvestLevel;
    }

    public static final EnumToolMaterial WOOD;
    public static final EnumToolMaterial STONE;
    public static final EnumToolMaterial IRON;
    public static final EnumToolMaterial EMERALD;
    public static final EnumToolMaterial GOLD;
    private final int harvestLevel;
    private final int maxUses;
    private final float efficiencyOnProperMaterial;
    private final int damageVsEntity;
    private static final EnumToolMaterial $VALUES[]; /* synthetic field */

    static 
    {
        WOOD = new EnumToolMaterial("WOOD", 0, "WOOD", 0, 0, 59, 2.0F, 0);
        STONE = new EnumToolMaterial("STONE", 1, "STONE", 1, 1, 131, 4F, 1);
        IRON = new EnumToolMaterial("IRON", 2, "IRON", 2, 2, 250, 6F, 2);
        EMERALD = new EnumToolMaterial("EMERALD", 3, "EMERALD", 3, 3, 1561, 8F, 3);
        GOLD = new EnumToolMaterial("GOLD", 4, "GOLD", 4, 0, 32, 12F, 0);
        $VALUES = (new EnumToolMaterial[] {
            WOOD, STONE, IRON, EMERALD, GOLD
        })
    }
}
I don't know what to do

@Heartview/@BassSR

Who can help me?
ermmm.
Try to remove the ; after package and see what happends...?
i can TV if you want.
do not trust callum on TV.
Heartview =
Well first of all update to MCP version 4.1

On the second last line try adding *\
If that doesn't work - ;*\

So the last bit of your code will look like;
Code:
static 
    {
        WOOD = new EnumToolMaterial("WOOD", 0, "WOOD", 0, 0, 59, 2.0F, 0);
        STONE = new EnumToolMaterial("STONE", 1, "STONE", 1, 1, 131, 4F, 1);
        IRON = new EnumToolMaterial("IRON", 2, "IRON", 2, 2, 250, 6F, 2);
        EMERALD = new EnumToolMaterial("EMERALD", 3, "EMERALD", 3, 3, 1561, 8F, 3);
        GOLD = new EnumToolMaterial("GOLD", 4, "GOLD", 4, 0, 32, 12F, 0);
        $VALUES = (new EnumToolMaterial[] {
            WOOD, STONE, IRON, EMERALD, GOLD
        })
    }
*\
}
@Thunder
Eh, it's a failure of the whole .class itself i think... You need to get a fresh one and restart it again :/
Posts 17 of 7 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?