src/main/java/com/alexdgr8r/randomevents/common/event/RandomEventHandler.java
/**
	 * Registers the event if it is enabled in the config file.
	 * Config file uses the event's ID to see if it can be registered.
	 * @param event
	 */
Registers the event if it is enabled in the config file.
Config file uses the event's ID to see if it can be registered.
@param event
Registers the event if it is enabled in the config file . Config file uses the event ' s ID to see if it can be registered . @param event
public static void registerEvent(Event event)
	{
		if (event instanceof EventNone || ModConfig.instance.get("Event " + event.getID() + " enabled", true, "Set to true to enable event with the ID: " + event.getID()))
		{
			events.add(event);
			weightedSum += event.getRarity();
		}
	}
public static void registerEvent ( Event event ) { if ( event instanceof EventNone || ModConfig . instance . get ( "Event " + event . getID ( ) + " enabled" , true , "Set to true to enable event with the ID: " + event . getID ( ) ) ) { events . add ( event ) ; weightedSum += event . getRarity ( ) ; } }
Registers the event if it is enabled in the config file.
Registers the event if it is enabled in the config file .
// Check if enabled via config