18 Zeilen
448 B
Java
18 Zeilen
448 B
Java
|
package de.steamwar.bausystem.configplayer;
|
||
|
|
||
|
import lombok.experimental.UtilityClass;
|
||
|
|
||
|
import java.util.HashMap;
|
||
|
import java.util.Map;
|
||
|
|
||
|
@UtilityClass
|
||
|
public class ConfigUpdater {
|
||
|
|
||
|
private static final Map<Integer, ConfigConverter> CONFIG_CONVERTER_MAP = new HashMap<>();
|
||
|
|
||
|
public static void addConfigConverter(ConfigConverter configConverter) {
|
||
|
CONFIG_CONVERTER_MAP.putIfAbsent(configConverter.version(), configConverter);
|
||
|
}
|
||
|
|
||
|
}
|