Some reformat code for 1.11.2 source (#84)

* Optimized imports

* Some code reformat

* Some refactoring and code reformat

* Some code reformat
This commit is contained in:
Alexander Kornilov authored and mezz committed 2017-06-01 00:48:08 -07:00
1 parent 886c36a308
commit c3809fbc27
508 files changed
+6677 -6238

No files matched your search

@@ -42,30 +42,10 @@ public enum ExtraBeesBranch implements IClassification {
QUANTUM("Quantapis"),
BOTANIA("Botaniapis"); //TODO There is 1 bee in here, that produces the petal of the flowers around, move to MagicBEes?
IClassification parent;
private String uid;
private String scientific;
private Set<IAlleleBeeSpecies> speciesSet;
IClassification parent;
@Override
public String getUID() {
return "extrabees.genus." + this.uid;
}
@Override
public String getName() {
return ExtraBees.proxy.localise("branch." + this.toString().toLowerCase() + ".name");
}
@Override
public String getScientific() {
return this.scientific;
}
@Override
public String getDescription() {
return ExtraBees.proxy.localise("branch." + this.toString().toLowerCase() + ".desc");
}
ExtraBeesBranch(final String scientific) {
this.uid = "";
@@ -75,17 +55,6 @@ public enum ExtraBeesBranch implements IClassification {
this.uid = this.toString().toLowerCase();
}
public void register() {
if (!this.speciesSet.isEmpty()) {
AlleleManager.alleleRegistry.registerClassification(this);
final IClassification parent = AlleleManager.alleleRegistry.getClassification("family.apidae");
if (parent != null) {
parent.addMemberGroup(this);
this.setParent(parent);
}
}
}
public static void setSpeciesBranches() {
final IClassification frozenBranch = AlleleManager.alleleRegistry.getClassification("genus.bees.frozen");
if (frozenBranch != null) {
@@ -267,6 +236,37 @@ public enum ExtraBeesBranch implements IClassification {
ExtraBeesBranch.BOTANIA.register();
}
@Override
public String getUID() {
return "extrabees.genus." + this.uid;
}
@Override
public String getName() {
return ExtraBees.proxy.localise("branch." + this.toString().toLowerCase() + ".name");
}
@Override
public String getScientific() {
return this.scientific;
}
@Override
public String getDescription() {
return ExtraBees.proxy.localise("branch." + this.toString().toLowerCase() + ".desc");
}
public void register() {
if (!this.speciesSet.isEmpty()) {
AlleleManager.alleleRegistry.registerClassification(this);
final IClassification parent = AlleleManager.alleleRegistry.getClassification("family.apidae");
if (parent != null) {
parent.addMemberGroup(this);
this.setParent(parent);
}
}
}
@Override
public IClassification.EnumClassLevel getLevel() {
return IClassification.EnumClassLevel.GENUS;