correct iron/emzuli/clay pipe textures, charging table; use one weird trick for better pipe rendering
Before Width: | Height: | Size: 959 B After Width: | Height: | Size: 971 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 243 B |
Before Width: | Height: | Size: 147 B After Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 415 B After Width: | Height: | Size: 479 B |
Before Width: | Height: | Size: 223 B After Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 224 B |
|
@ -42,6 +42,10 @@ public final class FakeBlock extends Block implements ITextureStates {
|
||||||
return colorMultiplier;
|
return colorMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getColor() {
|
||||||
|
return colorMultiplier;
|
||||||
|
}
|
||||||
|
|
||||||
public void setColor(int color) {
|
public void setColor(int color) {
|
||||||
this.colorMultiplier = color;
|
this.colorMultiplier = color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,10 +197,17 @@ public class PipeRendererWorld implements ISimpleBlockRenderingHandler {
|
||||||
stateHost.setRenderMask(mask);
|
stateHost.setRenderMask(mask);
|
||||||
renderblocks.setRenderBounds(dim[2], dim[0], dim[1], dim[5], dim[3], dim[4]);
|
renderblocks.setRenderBounds(dim[2], dim[0], dim[1], dim[5], dim[3], dim[4]);
|
||||||
renderblocks.renderStandardBlock(stateHost, x, y, z);
|
renderblocks.renderStandardBlock(stateHost, x, y, z);
|
||||||
|
|
||||||
|
int c = stateHost.getBlockColor();
|
||||||
|
int r = (c & 0xFF0000) >> 1;
|
||||||
|
int g = (c & 0x00FF00) >> 1;
|
||||||
|
int b = (c & 0x0000FF) >> 1;
|
||||||
|
stateHost.setColor((r & 0xFF0000) | (g & 0x00FF00) | b);
|
||||||
stateHost.setRenderMask((mask & 0x15) << 1 | (mask & 0x2a) >> 1); // pairwise swapped mask
|
stateHost.setRenderMask((mask & 0x15) << 1 | (mask & 0x2a) >> 1); // pairwise swapped mask
|
||||||
renderblocks.setRenderBounds(dim[5], dim[3], dim[4], dim[2], dim[0], dim[1]);
|
renderblocks.setRenderBounds(dim[5], dim[3], dim[4], dim[2], dim[0], dim[1]);
|
||||||
renderblocks.renderStandardBlock(stateHost, x, y, z);
|
renderblocks.renderStandardBlock(stateHost, x, y, z);
|
||||||
stateHost.setRenderAllSides();
|
stateHost.setRenderAllSides();
|
||||||
|
stateHost.setColor(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|