mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
package tconstruct.blocks;
|
|
|
|
import tconstruct.library.TConstructRegistry;
|
|
import net.minecraft.block.material.Material;
|
|
|
|
public class GlassPaneStained extends PaneBase
|
|
{
|
|
static String blockTextures[] = { "white", "orange", "magenta", "lightblue", "yellow", "lime", "pink", "gray", "lightgray", "cyan", "purple", "blue", "brown", "green", "red", "black" };
|
|
|
|
public GlassPaneStained()
|
|
{
|
|
super(Material.field_151592_s, "glass/", assembleBlockTextures());
|
|
//TODO setHardness
|
|
this.func_149711_c(0.3F);
|
|
this.setStepSound(soundGlassFootstep);
|
|
this.setUnlocalizedName("tconstruct.glasspanestained");
|
|
this.setCreativeTab(TConstructRegistry.blockTab);
|
|
}
|
|
|
|
private static String[] assembleBlockTextures ()
|
|
{
|
|
String[] textures = new String[blockTextures.length];
|
|
for (int i = 0; i < blockTextures.length; i++)
|
|
{
|
|
textures[i] = "stainedglass_" + blockTextures[i];
|
|
}
|
|
return textures;
|
|
}
|
|
|
|
@Override
|
|
public int getRenderBlockPass ()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
@Override
|
|
public int damageDropped (int par1)
|
|
{
|
|
return par1;
|
|
}
|
|
}
|