improve junction connections and add better textures

This commit is contained in:
George Paton 2025-10-27 16:35:36 +11:00
parent 2833d58e84
commit 7161a1ef73
12 changed files with 17 additions and 16 deletions

View File

@ -83,28 +83,29 @@ public class PowerCableBox extends BlockContainer implements IBlockMulti {
return (side == 2 || side == 3) ? iconEnd[meta] : iconStraight;
} else if((mask & 0b110011) == 0 && mask > 0) {
return (side == 0 || side == 1) ? iconEnd[meta] : iconStraight;
} else if(count == 2) {
} else {
if(side == 0 && nY || side == 1 && pY || side == 2 && nZ || side == 3 && pZ || side == 4 && nX || side == 5 && pX)
return iconEnd[meta];
if(side == 1 && nY || side == 0 && pY || side == 3 && nZ || side == 2 && pZ || side == 5 && nX || side == 4 && pX)
return iconStraight;
if(nY && pZ) return side == 4 ? iconCurveBR : iconCurveBL;
if(nY && nZ) return side == 5 ? iconCurveBR : iconCurveBL;
if(nY && pX) return side == 3 ? iconCurveBR : iconCurveBL;
if(nY && nX) return side == 2 ? iconCurveBR : iconCurveBL;
if(pY && pZ) return side == 4 ? iconCurveTR : iconCurveTL;
if(pY && nZ) return side == 5 ? iconCurveTR : iconCurveTL;
if(pY && pX) return side == 3 ? iconCurveTR : iconCurveTL;
if(pY && nX) return side == 2 ? iconCurveTR : iconCurveTL;
if(count == 2) {
if(side == 1 && nY || side == 0 && pY || side == 3 && nZ || side == 2 && pZ || side == 5 && nX || side == 4 && pX)
return iconStraight;
if(pX && nZ) return side == 0 ? iconCurveTR : iconCurveTR;
if(pX && pZ) return side == 0 ? iconCurveBR : iconCurveBR;
if(nX && nZ) return side == 0 ? iconCurveTL : iconCurveTL;
if(nX && pZ) return side == 0 ? iconCurveBL : iconCurveBL;
if(nY && pZ) return side == 4 ? iconCurveBR : iconCurveBL;
if(nY && nZ) return side == 5 ? iconCurveBR : iconCurveBL;
if(nY && pX) return side == 3 ? iconCurveBR : iconCurveBL;
if(nY && nX) return side == 2 ? iconCurveBR : iconCurveBL;
if(pY && pZ) return side == 4 ? iconCurveTR : iconCurveTL;
if(pY && nZ) return side == 5 ? iconCurveTR : iconCurveTL;
if(pY && pX) return side == 3 ? iconCurveTR : iconCurveTL;
if(pY && nX) return side == 2 ? iconCurveTR : iconCurveTL;
return iconJunction;
if(pX && nZ) return side == 0 ? iconCurveTR : iconCurveTR;
if(pX && pZ) return side == 0 ? iconCurveBR : iconCurveBR;
if(nX && nZ) return side == 0 ? iconCurveTL : iconCurveTL;
if(nX && pZ) return side == 0 ? iconCurveBL : iconCurveBL;
}
}
return iconJunction;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 B

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 B

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 241 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 497 B

After

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 446 B

After

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 B

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 405 B

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 338 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 B

After

Width:  |  Height:  |  Size: 141 B