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

@@ -61,6 +61,13 @@ public enum EnumETLog implements IWoodType {
this.plank = plank;
}
public static EnumETLog byMetadata(int meta) {
if (meta < 0 || meta >= VALUES.length) {
meta = 0;
}
return VALUES[meta];
}
@Override
public String getName() {
return name().toLowerCase();
@@ -147,12 +154,5 @@ public enum EnumETLog implements IWoodType {
public int getMetadata() {
return ordinal();
}
public static EnumETLog byMetadata(int meta) {
if (meta < 0 || meta >= VALUES.length) {
meta = 0;
}
return VALUES[meta];
}
}