Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Last addition for 1.7.10: alumite/ardite/cobalt/manyullyn bricks and …
…fancy bricks
- Loading branch information
Showing
5 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/tconstruct/tools/blocks/MultiBrickMetal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package tconstruct.tools.blocks; | ||
|
||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.relauncher.SideOnly; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.block.material.Material; | ||
import net.minecraft.client.renderer.texture.IIconRegister; | ||
import net.minecraft.util.IIcon; | ||
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]); | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/tconstruct/tools/itemblocks/MultiBrickMetalItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package tconstruct.tools.itemblocks; | ||
|
||
import mantle.blocks.abstracts.MultiItemBlock; | ||
import net.minecraft.block.Block; | ||
|
||
public class MultiBrickMetalItem extends MultiItemBlock { | ||
static String blockTypes[] = { "brick.alumite", "brick.ardite", "brick.cobalt", "brick.manyullyn", "fancybrick.alumite", "fancybrick.ardite", "fancybrick.cobalt", "fancybrick.manyullyn" }; | ||
|
||
public MultiBrickMetalItem(Block b) | ||
{ | ||
super(b, "block", blockTypes); | ||
setMaxDamage(0); | ||
setHasSubtypes(true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters