mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 19:59:49 +00:00
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:
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) {
|
||||
|
||||
Reference in new issue
Block a user