To create an EventHandler for your mod, you add a variable like this to the mod class:
SamEventHandler handler = new SamEventHandler();
Because the class
SamEventHandler hasn’t been made yet, this contains an error. You fix this soon when you create the class. However, before that is done, it would be useful to register this class as a class that handles world generation. To do that, add the following line of code to the
This method registers the event handler as a world generator. The first parameter is the handler variable, which was just created. The second parameter is the importance of the ...