src/main/java/com/alexdgr8r/randomevents/common/event/RandomEventHandler.java
/**
	 * Unregisters the event if found. <br>
	 * <b>NOTE:</b> The event will continue to run if it is the current event,
	 * but it will not be included in the pool of events for next time
	 * since it is unregistered.
	 * @param id Event ID
	 * @return true if removed
	 */
Unregisters the event if found. 
NOTE: The event will continue to run if it is the current event,
but it will not be included in the pool of events for next time
since it is unregistered.
@param id Event ID
@return true if removed
Unregisters the event if found . NOTE : The event will continue to run if it is the current event but it will not be included in the pool of events for next time since it is unregistered . @param id Event ID @return true if removed
public static boolean unregisterEvent(String id)
	{
		if (!id.equalsIgnoreCase("NONE"))
		{
			Iterator<Event> iter = events.iterator();
			while (iter.hasNext()) {
				Event event = iter.next();
				if (event.getID().equalsIgnoreCase(id))
				{
					iter.remove();
					weightedSum -= event.getRarity();
					return true;
				}
			}
		}
		return false;
	}
public static boolean unregisterEvent ( String id ) { if ( ! id . equalsIgnoreCase ( "NONE" ) ) { Iterator < Event > iter = events . iterator ( ) ; while ( iter . hasNext ( ) ) { Event event = iter . next ( ) ; if ( event . getID ( ) . equalsIgnoreCase ( id ) ) { iter . remove ( ) ; weightedSum -= event . getRarity ( ) ; return true ; } } } return false ; }
Unregisters the event if found.
Unregisters the event if found .