mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-16 10:45:02 +00:00
Those are the textures for it, I can't figure out the CTM logic. Plus I made it so carvable glow can be colored by the dye or regular
This commit is contained in:
1 parent
cb1c69d850
commit
46bea5a0a3
6 files changed
+78
-2
No files matched your search
@@ -15,11 +15,13 @@ public class BlockCarvableGlow extends BlockCarvableColor {
|
||||
private IIcon glowTexture;
|
||||
|
||||
private String glowTexturePath;
|
||||
private boolean isColored;
|
||||
|
||||
public BlockCarvableGlow(String glowTexture) {
|
||||
public BlockCarvableGlow(String glowTexture, boolean colorized) {
|
||||
super();
|
||||
setLightLevel(0.5f);
|
||||
this.glowTexturePath = glowTexture;
|
||||
this.isColored = colorized;
|
||||
}
|
||||
|
||||
public BlockCarvableGlow(Material mat, String glowTexture) {
|
||||
@@ -39,6 +41,10 @@ public class BlockCarvableGlow extends BlockCarvableColor {
|
||||
|
||||
@Override
|
||||
public int getRenderType() {
|
||||
return Chisel.renderGlowId;
|
||||
if(this.isColored){
|
||||
return Chisel.renderGlowId;
|
||||
} else {
|
||||
return Chisel.renderNoColorGlowId;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user