Files
Chisel/src/main/java/com/cricketcraft/chisel/block/BlockCarvableGlow.java
T

41 lines
891 B
Java
Raw Normal View History

2015-01-08 18:36:23 -05:00
package com.cricketcraft.chisel.block;
import com.cricketcraft.chisel.Chisel;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
public class BlockCarvableGlow extends BlockCarvable {
@SideOnly(Side.CLIENT)
private IIcon glowTexture;
private String glowTexturePath;
public BlockCarvableGlow(String glowTexture) {
super();
this.glowTexturePath = glowTexture;
}
@Override
public void registerBlockIcons(IIconRegister register) {
super.registerBlockIcons(register);
glowTexture = register.registerIcon(Chisel.MOD_ID + ":" + glowTexturePath);
}
public IIcon getGlowTexture() {
return glowTexture;
}
@Override
public int getRenderType() {
return Chisel.renderGlowId;
}
@Override
public boolean renderAsNormalBlock() {
return false;
}
}