use of cavern.config.manager.CaveVeinManager in project Cavern2 by kegare.
the class CaveniaVeinsEntry method setToDefault.
@Override
public void setToDefault() {
CaveVeinManager manager = CaveniaConfig.veinManager;
try {
FileUtils.forceDelete(new File(manager.config.toString()));
} catch (IOException e) {
e.printStackTrace();
return;
}
manager.getCaveVeins().clear();
manager.config = null;
CaveniaConfig.syncVeinsConfig();
if (childScreen != null && childScreen instanceof GuiVeinsEditor) {
((GuiVeinsEditor) childScreen).refreshVeins(manager.getCaveVeins());
}
}
use of cavern.config.manager.CaveVeinManager in project Cavern2 by kegare.
the class CavernVeinsEntry method setToDefault.
@Override
public void setToDefault() {
CaveVeinManager manager = CavernConfig.veinManager;
try {
FileUtils.forceDelete(new File(manager.config.toString()));
} catch (IOException e) {
e.printStackTrace();
return;
}
manager.getCaveVeins().clear();
manager.config = null;
CavernConfig.syncVeinsConfig();
if (childScreen != null && childScreen instanceof GuiVeinsEditor) {
((GuiVeinsEditor) childScreen).refreshVeins(manager.getCaveVeins());
}
}
use of cavern.config.manager.CaveVeinManager in project Cavern2 by kegare.
the class HugeCavernVeinsEntry method setToDefault.
@Override
public void setToDefault() {
CaveVeinManager manager = HugeCavernConfig.veinManager;
try {
FileUtils.forceDelete(new File(manager.config.toString()));
} catch (IOException e) {
e.printStackTrace();
return;
}
manager.getCaveVeins().clear();
manager.config = null;
HugeCavernConfig.syncVeinsConfig();
if (childScreen != null && childScreen instanceof GuiVeinsEditor) {
((GuiVeinsEditor) childScreen).refreshVeins(manager.getCaveVeins());
}
}
use of cavern.config.manager.CaveVeinManager in project Cavern2 by kegare.
the class AquaCavernVeinsEntry method setToDefault.
@Override
public void setToDefault() {
CaveVeinManager manager = AquaCavernConfig.veinManager;
try {
FileUtils.forceDelete(new File(manager.config.toString()));
} catch (IOException e) {
e.printStackTrace();
return;
}
manager.getCaveVeins().clear();
manager.config = null;
AquaCavernConfig.syncVeinsConfig();
if (childScreen != null && childScreen instanceof GuiVeinsEditor) {
((GuiVeinsEditor) childScreen).refreshVeins(manager.getCaveVeins());
}
}
use of cavern.config.manager.CaveVeinManager in project Cavern2 by kegare.
the class CavelandVeinsEntry method setToDefault.
@Override
public void setToDefault() {
CaveVeinManager manager = CavelandConfig.veinManager;
try {
FileUtils.forceDelete(new File(manager.config.toString()));
} catch (IOException e) {
e.printStackTrace();
return;
}
manager.getCaveVeins().clear();
manager.config = null;
CavelandConfig.syncVeinsConfig();
if (childScreen != null && childScreen instanceof GuiVeinsEditor) {
((GuiVeinsEditor) childScreen).refreshVeins(manager.getCaveVeins());
}
}
Aggregations