mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Initial test of Gradle (not working yet)
This commit is contained in:
1 parent
e8b7378831
commit
cb87c836c8
519 files changed
+351
No files matched your search
@@ -0,0 +1,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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user