I'm trying to get into modding and am looking at this code here as an example, but when I get to
public void preInit(FMLPreInitializationEvent event)
{
logger = event.getModLog();
System.out.print("Called event handler PreInit");
}
Eclipse tells me that there is an error with event.getModLog(), saying "The method getModLog() from the type FMLPreInitializationEvent refers to the missing type Logger". How can I fix this?
Edit for clarity: I do have import java.util.logging.Logger in my import statements.
EDIT AFTER RESOLUTION: I don't know what shenanigans Eclipse pulled, but one of the quick-fix options that I hadn't tried before, "fix setup," automagically fixed the problem.