private static final String DATA_FILE_PREFIX = "jfairy";
public static Fairy createFairy(Locale locale, String filePrefix, Random random) {
Injector injector = Guice.createInjector(new FairyModule(random));
DataMaster dataMaster = injector.getInstance(DataMaster.class);
try {
dataMaster.readResources(filePrefix + ".yml");
dataMaster.readResources(filePrefix + "_" + locale.getLanguage() + ".yml");
} catch (IOException e) {
throw new IllegalStateException(e);
}
FairyFactory instance = injector.getInstance(FairyFactory.class);