mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Beginnings of RepairConfig
This commit is contained in:
parent
43db51a664
commit
1185ea4f96
33
src/main/java/com/gmail/nossr50/config/RepairConfig.java
Normal file
33
src/main/java/com/gmail/nossr50/config/RepairConfig.java
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
package com.gmail.nossr50.config;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.gmail.nossr50.mcMMO;
|
||||||
|
import com.gmail.nossr50.skills.repair.Repairable;
|
||||||
|
|
||||||
|
public class RepairConfig extends ConfigLoader {
|
||||||
|
private final String fileName;
|
||||||
|
private List<Repairable> repairables;
|
||||||
|
|
||||||
|
public RepairConfig(mcMMO plugin, String fileName) {
|
||||||
|
super(plugin, fileName);
|
||||||
|
this.fileName = fileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void load() {
|
||||||
|
if(plugin.isInJar(fileName)) addDefaults();
|
||||||
|
loadKeys();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void loadKeys() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
}
|
||||||
|
|
||||||
|
protected List<Repairable> getLoadedRepairables() {
|
||||||
|
if(repairables == null) return new ArrayList<Repairable>();
|
||||||
|
return repairables;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user