Results 1 to 3 of 3
  1. #1
    mrgreenacid is offline Member
    Join Date
    May 2011
    Posts
    11
    Rep Power
    0

    Default Cannot find symbol (compile error)

    Hello, this is probably a stupid mistake but I can't seem to figure it out.

    There is my error list with all the fancy stuff removed

    src\minecraft\net\minecraft\src\EnumToolMod.java:1 0: cannot find symbol
    symbol : constructor EnumToolMod(java.lang.String,int,int,float,int)
    location: class net.minecraft.src.EnumToolMod
    OBBYCHUNK("OBBYCHUNK", 2, 500, 7.0F, 2);
    ^

    1 error

    Here is my

    Java Code:
    // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3) braces deadcode 
    
    package net.minecraft.src;
    
    
    public enum EnumToolMod
    {
    	OBBYCHUNK("OBBYCHUNK", 2, 500, 7.0F, 2);
    	
        private EnumToolMod(String s, int i, int j, int k, float f, int l)
        {
            harvestLevel = j;
            maxUses = k;
            efficiencyOnProperMaterial = f;
            damageVsEntity = l;
        }
    
        public int getMaxUses()
        {
            return maxUses;
        }
    
        public float getEfficiencyOnProperMaterial()
        {
            return efficiencyOnProperMaterial;
        }
    
        public int getDamageVsEntity()
        {
            return damageVsEntity;
        }
    
        public int getHarvestLevel()
        {
            return harvestLevel;
        }
        
        private final int harvestLevel;
        private final int maxUses;
        private final float efficiencyOnProperMaterial;
        private final int damageVsEntity;
    }

    I think my problem is that im missing some class that needs to be referenced but i don't know what it would be called or where to put it.

    Yes this is for a minecraft mod.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Cannot find symbol (compile error)

    Your enum "OBBYCHUNK("OBBYCHUNK", 2, 500, 7.0F, 2);" doesn't match the constructor signature. Count the number of parameters to see why.

  3. #3
    mrgreenacid is offline Member
    Join Date
    May 2011
    Posts
    11
    Rep Power
    0

    Default Re: Cannot find symbol (compile error)

    wow thanks I see now i'm going to compile it now

    . . . . . . . . . . . . . . . . . . . ________
    . . . . . .. . . . . . . . . . . ,.-‘”. . . . . . . . . .``~.,
    . . . . . . . .. . . . . .,.-”. . . . . . . . . . . . . . . . . .“-.,
    . . . . .. . . . . . ..,/. . . . . . . . . . . . . . . . . . . . . . . ”:,
    . . . . . . . .. .,?. . . . . . . . . . . . . . . . . . . . . . . . . . .\,
    . . . . . . . . . /. . . . . . . . . . . . . . . . . . . . . . . . . . . . ,}
    . . . . . . . . ./. . . . . . . . . . . . . . . . . . . . . . . . . . ,:`^`.}
    . . . . . . . ./. . . . . . . . . . . . . . . . . . . . . . . . . ,:”. . . ./
    . . . . . . .?. . . __. . . . . . . . . . . . . . . . . . . . :`. . . ./
    . . . . . . . /__.(. . .“~-,_. . . . . . . . . . . . . . ,:`. . . .. ./
    . . . . . . /(_. . ”~,_. . . ..“~,_. . . . . . . . . .,:`. . . . _/
    . . . .. .{.._$;_. . .”=,_. . . .“-,_. . . ,.-~-,}, .~”; /. .. .}
    . . .. . .((. . .*~_. . . .”=-._. . .“;,,./`. . /” . . . ./. .. ../
    . . . .. . .\`~,. . ..“~.,. . . . . . . . . ..`. . .}. . . . . . ../
    . . . . . .(. ..`=-,,. . . .`. . . . . . . . . . . ..(. . . ;_,,-”
    . . . . . ../.`~,. . ..`-.. . . . . . . . . . . . . . ..\. . /\
    . . . . . . \`~.*-,. . . . . . . . . . . . . . . . . ..|,./.....\,__
    ,,_. . . . . }.>-._\. . . . . . . . . . . . . . . . . .|. . . . . . ..`=~-,
    . .. `=~-,_\_. . . `\,. . . . . . . . . . . . . . . . .\
    . . . . . . . . . .`=~-,,.\,. . . . . . . . . . . . . . . .\
    . . . . . . . . . . . . . . . . `:,, . . . . . . . . . . . . . `\. . . . . . ..__
    . . . . . . . . . . . . . . . . . . .`=-,. . . . . . . . . .,%`>--==``
    . . . . . . . . . . . . . . . . . . . . _\. . . . . ._,-%. . . ..`\

Similar Threads

  1. Replies: 6
    Last Post: 06-23-2011, 11:37 PM
  2. Constructor: Cannot find symbol compile error.
    By CaptainBeer in forum New To Java
    Replies: 4
    Last Post: 04-28-2011, 12:25 PM
  3. Cannot Find Symbol Error
    By javadummy1 in forum New To Java
    Replies: 6
    Last Post: 04-09-2011, 11:13 AM
  4. Cannot find symbol Error
    By new_Java in forum New To Java
    Replies: 3
    Last Post: 02-18-2011, 12:23 AM
  5. Replies: 9
    Last Post: 10-18-2008, 09:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •