mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 20:52:26 +00:00
69bb974420
* Use compileOnlyApi for CoFH * spotlessApply (#85) Co-authored-by: GitHub GTNH Actions <> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
32 lines
1.0 KiB
Java
32 lines
1.0 KiB
Java
package tconstruct.tools.blocks;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
import net.minecraft.util.IIcon;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
import tconstruct.blocks.TConstructBlock;
|
|
|
|
public class MultiBrickMetal extends TConstructBlock {
|
|
|
|
static String[] blockTextures = { "brick_alumite", "brick_ardite", "brick_cobalt", "brick_manyullyn",
|
|
"fancybrick_alumite", "fancybrick_ardite", "fancybrick_cobalt", "fancybrick_manyullyn" };
|
|
|
|
public MultiBrickMetal() {
|
|
super(Material.iron, 10f, blockTextures);
|
|
this.setStepSound(Block.soundTypeMetal);
|
|
}
|
|
|
|
@Override
|
|
@SideOnly(Side.CLIENT)
|
|
public void registerBlockIcons(IIconRegister iconRegister) {
|
|
this.icons = new IIcon[textureNames.length];
|
|
|
|
for (int i = 0; i < this.icons.length; ++i) {
|
|
this.icons[i] = iconRegister.registerIcon("tinker:bricks/" + textureNames[i]);
|
|
}
|
|
}
|
|
}
|