-
Notifications
You must be signed in to change notification settings - Fork 755
/
GlassPaneStained.java
40 lines (34 loc) · 1.12 KB
/
GlassPaneStained.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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(int id)
{
super(id, Material.glass, "glass/", assembleBlockTextures());
this.setHardness(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;
}
}