Jump to content

Recommended Posts

Posted

Greetings,

 

Recently, I've decided to try make a mod, and because I am new at this, I've decided to try out with a tutorial made by TheXFactor117:

(http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/2282788-1-7-1-8-thexfactor117s-forge-modding-tutorials-20)

 

However, I'm stuck in the Tutorial #3 of Vol. 3. In this part, he teach how to create the proxies and helper classes and at the end of this part, there is the Log Helper class, which is as it follows:

 

 

package com.github.Skkubah.UnfathomableDepths.helpers;

import java.util.logging.Level;

import com.github.Skkubah.UnfathomableDepths.Reference;

import cpw.mods.fml.common.FMLLog;

public class LogHelper {
public static void log(Level logLevel, Object object) {
	FMLLog.log(Reference.NAME, logLevel, String.valueOf(object));
}
    public static void all(Object object) {
    	log(Level.ALL, object);
    }
    public static void debug(Object object) {
    	log(Level.DEBUG, object);
    }
    public static void error(Object object) {
    	log(Level.ERROR, object);
    }
    public static void fatal(Object object) {
    	log(Level.FATAL, object);
    }
    public static void info(Object object) {
    	log(Level.INFO, object);
    }
    public static void off(Object object) {
    	log(Level.OFF, object);
    }
    public static void trace(Object object) {
    	log(Level.TRACE, object);
    }
    public static void warn(Object object) {
    	log(Level.WARN, object);
    }
}

 

 

The problems I am having here is that DEBUG, ERROR, FATAL, TRACE and WARN have the message: ".... Cannot be resolved or is not a field".

Also, in the line about FMLLog.log..., I've got the message: "The method log(String, Level, String, Object...) in the type FMLLog is not applicable for the arguments (String, Level, String)".

 

Sorry if I misspelled any word/sentence, english isn't my native language. Thank you for your time.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.