use of gg.projecteden.nexus.features.resourcepack.models.events.ResourcePackUpdateStartEvent in project Nexus by ProjectEdenGG.
the class ResourcePack method read.
public static void read() {
Tasks.async(() -> {
try {
new ResourcePackUpdateStartEvent().callEvent();
reloading = true;
HttpUtils.saveFile(URL, FILE_NAME);
openZip();
setup();
readAllFiles();
CustomModelMenu.load();
reloading = false;
new ResourcePackUpdateCompleteEvent().callEvent();
} catch (Exception ex) {
ex.printStackTrace();
} finally {
closeZip();
}
});
}
Aggregations