Localization and refactoring (#77)

* Some refactoring for bee production

* Code cleanup

* Code cleanup

* Added some localization

* Fix wrong dropped class

* Added some localization

* Added some localization

* Added some localization

* Fix wrong import
This commit is contained in:
Alexander Kornilov authored and mezz committed 2017-05-23 23:58:13 -07:00
1 parent 68bbe7710c
commit 1ea7b62e5f
157 files changed
+3240 -5045

No files matched your search

@@ -64,61 +64,11 @@ public class DesignBlock {
}
public int getPrimaryColour() {
return getPrimaryMaterial().getColour();
return getPrimaryMaterial().getColor();
}
public int getSecondaryColour() {
return getSecondaryMaterial().getColour();
}
// TODO unused method?
ForgeDirection getRotation(ForgeDirection dir, ModuleCarpentry.Axis axis) {
if (axis == ModuleCarpentry.Axis.Y) {
switch (dir) {
case EAST:
return ForgeDirection.NORTH;
case NORTH:
return ForgeDirection.WEST;
case SOUTH:
return ForgeDirection.EAST;
case WEST:
return ForgeDirection.SOUTH;
}
return dir;
} else if (axis == ModuleCarpentry.Axis.X) {
switch (dir) {
case EAST:
return ForgeDirection.UP;
case UP:
return ForgeDirection.WEST;
case WEST:
return ForgeDirection.DOWN;
case DOWN:
return ForgeDirection.EAST;
}
return dir;
} else {
switch (dir) {
case SOUTH:
return ForgeDirection.UP;
case UP:
return ForgeDirection.NORTH;
case NORTH:
return ForgeDirection.DOWN;
case DOWN:
return ForgeDirection.SOUTH;
}
return dir;
}
return getSecondaryMaterial().getColor();
}
public ILayout getLayout(ForgeDirection dir) {