aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/block/base
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2017-03-04 12:58:47 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2017-03-04 12:58:47 +1000
commitae21012d216df71f31aed6fbc9d76215fc24ceed (patch)
treecc89accbe6ce5c04b72ed3c5e46b2a185f88be6a /src/Java/gtPlusPlus/core/block/base
parentba89972a22a316030f8c3bd99974f915b1d7aefc (diff)
downloadGT5-Unofficial-ae21012d216df71f31aed6fbc9d76215fc24ceed.tar.gz
GT5-Unofficial-ae21012d216df71f31aed6fbc9d76215fc24ceed.tar.bz2
GT5-Unofficial-ae21012d216df71f31aed6fbc9d76215fc24ceed.zip
+ New texture for the slow builders ring.
+ Added the Alkalus Disk. $ Fixed Frame Box Assembler Recipes. $ Fixed Missing 7Li material. $ Fixed Tiered Tanks not showing their capacity in the tooltip. $ Fixed tooltips for alloys containing Bronze or Steel. $ Fixed Clay Pipe Extruder Recipes. - Removed a handful of Plasma cells for misc. materials. % Changed the Industrial Coke Oven's tooltip, to better describe the input/output requirements. % Cleaned up The Entire Project.
Diffstat (limited to 'src/Java/gtPlusPlus/core/block/base')
-rw-r--r--src/Java/gtPlusPlus/core/block/base/AdvancedBlock.java36
-rw-r--r--src/Java/gtPlusPlus/core/block/base/BasicBlock.java90
-rw-r--r--src/Java/gtPlusPlus/core/block/base/BlockBaseModular.java104
-rw-r--r--src/Java/gtPlusPlus/core/block/base/BlockBaseOre.java40
-rw-r--r--src/Java/gtPlusPlus/core/block/base/MetaBlock.java36
-rw-r--r--src/Java/gtPlusPlus/core/block/base/MultiTextureBlock.java48
6 files changed, 177 insertions, 177 deletions
diff --git a/src/Java/gtPlusPlus/core/block/base/AdvancedBlock.java b/src/Java/gtPlusPlus/core/block/base/AdvancedBlock.java
index b7ac24a71b..7a0b715138 100644
--- a/src/Java/gtPlusPlus/core/block/base/AdvancedBlock.java
+++ b/src/Java/gtPlusPlus/core/block/base/AdvancedBlock.java
@@ -9,23 +9,23 @@ import net.minecraft.world.World;
public class AdvancedBlock extends Block {
- protected AdvancedBlock(String unlocalizedName, Material material, CreativeTabs x, float blockHardness, float blockResistance, float blockLightLevel,
- String blockHarvestTool, int blockHarvestLevel, SoundType BlockSound) {
- super(material);
- this.setBlockName(unlocalizedName);
- this.setBlockTextureName(CORE.MODID + ":" + unlocalizedName);
- this.setCreativeTab(x);
- this.setHardness(blockHardness); //block Hardness
- this.setResistance(blockResistance);
- this.setLightLevel(blockLightLevel);
- this.setHarvestLevel(blockHarvestTool, blockHarvestLevel);
- this.setStepSound(BlockSound);
- }
-
- @Override
- public boolean onBlockActivated(World p_149727_1_, int p_149727_2_, int p_149727_3_, int p_149727_4_, EntityPlayer p_149727_5_, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_)
- {
- return false;
- }
+ protected AdvancedBlock(final String unlocalizedName, final Material material, final CreativeTabs x, final float blockHardness, final float blockResistance, final float blockLightLevel,
+ final String blockHarvestTool, final int blockHarvestLevel, final SoundType BlockSound) {
+ super(material);
+ this.setBlockName(unlocalizedName);
+ this.setBlockTextureName(CORE.MODID + ":" + unlocalizedName);
+ this.setCreativeTab(x);
+ this.setHardness(blockHardness); //block Hardness
+ this.setResistance(blockResistance);
+ this.setLightLevel(blockLightLevel);
+ this.setHarvestLevel(blockHarvestTool, blockHarvestLevel);
+ this.setStepSound(BlockSound);
+ }
+
+ @Override
+ public boolean onBlockActivated(final World p_149727_1_, final int p_149727_2_, final int p_149727_3_, final int p_149727_4_, final EntityPlayer p_149727_5_, final int p_149727_6_, final float p_149727_7_, final float p_149727_8_, final float p_149727_9_)
+ {
+ return false;
+ }
}
diff --git a/src/Java/gtPlusPlus/core/block/base/BasicBlock.java b/src/Java/gtPlusPlus/core/block/base/BasicBlock.java
index 2823fcc5b7..9e3a5fc37f 100644
--- a/src/Java/gtPlusPlus/core/block/base/BasicBlock.java
+++ b/src/Java/gtPlusPlus/core/block/base/BasicBlock.java
@@ -10,56 +10,56 @@ import net.minecraft.world.World;
public class BasicBlock extends BlockContainer {
- public BasicBlock(final String unlocalizedName, final Material material) {
- this(unlocalizedName, material, 2);
- }
-
- public BasicBlock(final String unlocalizedName, final Material material, int harvestLevel) {
- super(material);
- this.setBlockName(Utils.sanitizeString(unlocalizedName));
- this.setBlockTextureName(CORE.MODID + ":" + unlocalizedName);
- this.setCreativeTab(AddToCreativeTab.tabBlock);
- this.setHardness(2.0F);
- this.setResistance(6.0F);
- this.setLightLevel(0.0F);
- this.setHarvestLevel("pickaxe", harvestLevel);
- this.setStepSound(soundTypeMetal);
- }
+ public BasicBlock(final String unlocalizedName, final Material material) {
+ this(unlocalizedName, material, 2);
+ }
+
+ public BasicBlock(final String unlocalizedName, final Material material, final int harvestLevel) {
+ super(material);
+ this.setBlockName(Utils.sanitizeString(unlocalizedName));
+ this.setBlockTextureName(CORE.MODID + ":" + unlocalizedName);
+ this.setCreativeTab(AddToCreativeTab.tabBlock);
+ this.setHardness(2.0F);
+ this.setResistance(6.0F);
+ this.setLightLevel(0.0F);
+ this.setHarvestLevel("pickaxe", harvestLevel);
+ this.setStepSound(soundTypeMetal);
+ }
+
+
+ public static enum BlockTypes {
+ STANDARD("blockBlock", "pickaxe", soundTypeMetal),
+ FRAME("blockFrameGt", "wrench", soundTypeMetal),
+ ORE("blockStone", "pickaxe", soundTypeStone);
-
- public static enum BlockTypes {
- STANDARD("blockBlock", "pickaxe", soundTypeMetal),
- FRAME("blockFrameGt", "wrench", soundTypeMetal),
- ORE("blockStone", "pickaxe", soundTypeStone);
-
- private String TEXTURE_NAME;
- private String HARVEST_TOOL;
- private SoundType soundOfBlock;
- private BlockTypes (final String textureName, final String harvestTool, final SoundType blockSound)
- {
- this.TEXTURE_NAME = textureName;
- this.HARVEST_TOOL = harvestTool;
- this.soundOfBlock = blockSound;
- }
+ private String TEXTURE_NAME;
+ private String HARVEST_TOOL;
+ private SoundType soundOfBlock;
+ private BlockTypes (final String textureName, final String harvestTool, final SoundType blockSound)
+ {
+ this.TEXTURE_NAME = textureName;
+ this.HARVEST_TOOL = harvestTool;
+ this.soundOfBlock = blockSound;
+ }
- public String getTexture() {
- return TEXTURE_NAME;
- }
-
- public String getHarvestTool(){
- return HARVEST_TOOL;
- }
-
- public SoundType getBlockSoundType(){
- return soundOfBlock;
- }
-
- }
+ public String getTexture() {
+ return this.TEXTURE_NAME;
+ }
+
+ public String getHarvestTool(){
+ return this.HARVEST_TOOL;
+ }
+
+ public SoundType getBlockSoundType(){
+ return this.soundOfBlock;
+ }
+
+ }
@Override
- public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) {
+ public TileEntity createNewTileEntity(final World p_149915_1_, final int p_149915_2_) {
return null;
}
-
+
}
diff --git a/src/Java/gtPlusPlus/core/block/base/BlockBaseModular.java b/src/Java/gtPlusPlus/core/block/base/BlockBaseModular.java
index d694557f55..c8923a9301 100644
--- a/src/Java/gtPlusPlus/core/block/base/BlockBaseModular.java
+++ b/src/Java/gtPlusPlus/core/block/base/BlockBaseModular.java
@@ -1,5 +1,9 @@
package gtPlusPlus.core.block.base;
+import cpw.mods.fml.common.registry.GameRegistry;
+import cpw.mods.fml.common.registry.LanguageRegistry;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
import gtPlusPlus.core.item.base.itemblock.ItemBlockGtBlock;
import gtPlusPlus.core.item.base.itemblock.ItemBlockGtFrameBox;
import gtPlusPlus.core.lib.CORE;
@@ -8,10 +12,6 @@ import gtPlusPlus.core.util.math.MathUtils;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.world.IBlockAccess;
-import cpw.mods.fml.common.registry.GameRegistry;
-import cpw.mods.fml.common.registry.LanguageRegistry;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
public class BlockBaseModular extends BasicBlock{
@@ -21,11 +21,11 @@ public class BlockBaseModular extends BasicBlock{
protected final String thisBlockType;
- public BlockBaseModular(String unlocalizedName, String blockMaterial, BlockTypes blockType, int colour) {
+ public BlockBaseModular(final String unlocalizedName, final String blockMaterial, final BlockTypes blockType, final int colour) {
this(unlocalizedName, blockMaterial, Material.iron, blockType, colour, 2);
}
-
- public BlockBaseModular(String unlocalizedName, String blockMaterial, Material vanillaMaterial, BlockTypes blockType, int colour, int miningLevel) {
+
+ public BlockBaseModular(final String unlocalizedName, final String blockMaterial, final Material vanillaMaterial, final BlockTypes blockType, final int colour, final int miningLevel) {
super(unlocalizedName, vanillaMaterial);
this.setHarvestLevel(blockType.getHarvestTool(), miningLevel);
this.setBlockTextureName(CORE.MODID+":"+blockType.getTexture());
@@ -33,8 +33,8 @@ public class BlockBaseModular extends BasicBlock{
this.thisBlock = blockType;
this.thisBlockMaterial = blockMaterial;
this.thisBlockType = blockType.name().toUpperCase();
- this.setBlockName(GetProperName());
-
+ this.setBlockName(this.GetProperName());
+
if (!CORE.DEBUG){
//Utils.LOG_INFO("=============Block Info Dump=============");
//Utils.LOG_INFO("thisBlock.name().toLowerCase() - "+thisBlock.name().toLowerCase());
@@ -44,43 +44,43 @@ public class BlockBaseModular extends BasicBlock{
//Utils.LOG_INFO("blockMaterial - "+blockMaterial);
//Utils.LOG_INFO("==========================================");
}
-
- if (thisBlockType.equals(BlockTypes.STANDARD.name().toUpperCase())){
+
+ if (this.thisBlockType.equals(BlockTypes.STANDARD.name().toUpperCase())){
LanguageRegistry.addName(this, "Block of "+blockMaterial);
//Utils.LOG_INFO("Registered Block in Language Registry as: "+"Block of "+blockMaterial);
}
- else if (thisBlockType.equals(BlockTypes.FRAME.name().toUpperCase())){
+ else if (this.thisBlockType.equals(BlockTypes.FRAME.name().toUpperCase())){
LanguageRegistry.addName(this, blockMaterial+ " Frame Box");
//Utils.LOG_INFO("Registered Block in Language Registry as: "+blockMaterial+ " Frame Box");
}
- else if (thisBlockType.equals(BlockTypes.ORE.name().toUpperCase())){
+ else if (this.thisBlockType.equals(BlockTypes.ORE.name().toUpperCase())){
LanguageRegistry.addName(this, blockMaterial+ " Ore");
//Utils.LOG_INFO("Registered Block in Language Registry as: "+blockMaterial+ " Frame Box");
}
else {
LanguageRegistry.addName(this, blockMaterial);
//Utils.LOG_INFO("Registered Block in Language Registry as: "+blockMaterial);
- }
-
+ }
+
//setOreDict(unlocalizedName, blockType);
- if (thisBlockType.equals(BlockTypes.STANDARD.name().toUpperCase())){
- GameRegistry.registerBlock(this, ItemBlockGtBlock.class, Utils.sanitizeString(blockType.getTexture()+unlocalizedName));
- //Utils.LOG_INFO("Registered Block in Block Registry as: "+"Block of "+blockMaterial);
+ if (this.thisBlockType.equals(BlockTypes.STANDARD.name().toUpperCase())){
+ GameRegistry.registerBlock(this, ItemBlockGtBlock.class, Utils.sanitizeString(blockType.getTexture()+unlocalizedName));
+ //Utils.LOG_INFO("Registered Block in Block Registry as: "+"Block of "+blockMaterial);
}
- else if (thisBlockType.equals(BlockTypes.FRAME.name().toUpperCase())){
+ else if (this.thisBlockType.equals(BlockTypes.FRAME.name().toUpperCase())){
GameRegistry.registerBlock(this, ItemBlockGtFrameBox.class, Utils.sanitizeString(blockType.getTexture()+unlocalizedName));
- //Utils.LOG_INFO("Registered Block in Block Registry as: "+blockMaterial+" Frame Box");
+ //Utils.LOG_INFO("Registered Block in Block Registry as: "+blockMaterial+" Frame Box");
}
- else if (thisBlockType.equals(BlockTypes.ORE.name().toUpperCase())){
+ else if (this.thisBlockType.equals(BlockTypes.ORE.name().toUpperCase())){
GameRegistry.registerBlock(this, ItemBlockGtBlock.class, Utils.sanitizeString(blockType.getTexture()+unlocalizedName));
- //Utils.LOG_INFO("Registered Block in Block Registry as: "+blockMaterial+" Frame Box");
+ //Utils.LOG_INFO("Registered Block in Block Registry as: "+blockMaterial+" Frame Box");
}
else {
GameRegistry.registerBlock(this, ItemBlockGtBlock.class, Utils.sanitizeString(blockType.getTexture()+unlocalizedName));
- //Utils.LOG_INFO("Registered Block in Block Registry as: "+blockMaterial);
+ //Utils.LOG_INFO("Registered Block in Block Registry as: "+blockMaterial);
}
-
-
+
+
}
/**
@@ -90,15 +90,15 @@ public class BlockBaseModular extends BasicBlock{
@SideOnly(Side.CLIENT)
public int getRenderBlockPass()
{
- if (thisBlock == BlockTypes.FRAME){
- return 1;
+ if (this.thisBlock == BlockTypes.FRAME){
+ return 1;
}
return 0;
}
-
+
/*@Override
public String getLocalizedName() {
- String tempIngot;
+ String tempIngot;
if (thisBlock == BlockTypes.STANDARD){
tempIngot = "Block of "+thisBlockMaterial;
}
@@ -111,55 +111,55 @@ public class BlockBaseModular extends BasicBlock{
}
return tempIngot;
}*/
-
+
public String GetProperName() {
- String tempIngot;
- if (thisBlock == BlockTypes.STANDARD){
- tempIngot = "Block of "+thisBlockMaterial;
+ String tempIngot;
+ if (this.thisBlock == BlockTypes.STANDARD){
+ tempIngot = "Block of "+this.thisBlockMaterial;
}
- else if (thisBlock == BlockTypes.FRAME){
- tempIngot = thisBlockMaterial + " Frame Box";
+ else if (this.thisBlock == BlockTypes.FRAME){
+ tempIngot = this.thisBlockMaterial + " Frame Box";
}
- else if (thisBlock == BlockTypes.ORE){
- tempIngot = thisBlockMaterial + " Ore";
+ else if (this.thisBlock == BlockTypes.ORE){
+ tempIngot = this.thisBlockMaterial + " Ore";
}
else {
- tempIngot = getUnlocalizedName().replace("tile.blockGt", "ingot");
+ tempIngot = this.getUnlocalizedName().replace("tile.blockGt", "ingot");
}
return tempIngot;
}
@Override
public boolean isOpaqueCube()
- {
- return false;
- }
+ {
+ return false;
+ }
@Override
@SideOnly(Side.CLIENT)
- public void registerBlockIcons(IIconRegister iIcon)
+ public void registerBlockIcons(final IIconRegister iIcon)
{
- this.blockIcon = iIcon.registerIcon(CORE.MODID + ":" + thisBlock.getTexture());
+ this.blockIcon = iIcon.registerIcon(CORE.MODID + ":" + this.thisBlock.getTexture());
}
@Override
- public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4){
-
+ public int colorMultiplier(final IBlockAccess par1IBlockAccess, final int par2, final int par3, final int par4){
+
if (this.blockColour == 0){
return MathUtils.generateSingularRandomHexValue();
}
-
+
return this.blockColour;
}
-
- @Override
- public int getRenderColor(int aMeta) {
- if (this.blockColour == 0){
+
+ @Override
+ public int getRenderColor(final int aMeta) {
+ if (this.blockColour == 0){
return MathUtils.generateSingularRandomHexValue();
}
-
+
return this.blockColour;
- }
+ }
}
diff --git a/src/Java/gtPlusPlus/core/block/base/BlockBaseOre.java b/src/Java/gtPlusPlus/core/block/base/BlockBaseOre.java
index c57aa248b4..c1e58e9393 100644
--- a/src/Java/gtPlusPlus/core/block/base/BlockBaseOre.java
+++ b/src/Java/gtPlusPlus/core/block/base/BlockBaseOre.java
@@ -1,13 +1,13 @@
package gtPlusPlus.core.block.base;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.util.math.MathUtils;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
public class BlockBaseOre extends BlockBaseModular{
@@ -21,18 +21,18 @@ public class BlockBaseOre extends BlockBaseModular{
return true;
}*/
- public BlockBaseOre(String unlocalizedName, String blockMaterial, BlockTypes blockType, int colour) {
+ public BlockBaseOre(final String unlocalizedName, final String blockMaterial, final BlockTypes blockType, final int colour) {
this(unlocalizedName, blockMaterial, Material.iron, blockType, colour, 2);
}
-
- public BlockBaseOre(String unlocalizedName, String blockMaterial, Material vanillaMaterial, BlockTypes blockType, int colour, int miningLevel) {
- super(unlocalizedName, blockMaterial, vanillaMaterial, blockType, colour, miningLevel);
+
+ public BlockBaseOre(final String unlocalizedName, final String blockMaterial, final Material vanillaMaterial, final BlockTypes blockType, final int colour, final int miningLevel) {
+ super(unlocalizedName, blockMaterial, vanillaMaterial, blockType, colour, miningLevel);
}
/**
* Returns which pass should this block be rendered on. 0 for solids and 1 for alpha
*/
-
+
/*@Override
@SideOnly(Side.CLIENT)
public int getRenderBlockPass()
@@ -48,30 +48,30 @@ public class BlockBaseOre extends BlockBaseModular{
@Override
@SideOnly(Side.CLIENT)
- public void registerBlockIcons(IIconRegister iIcon)
+ public void registerBlockIcons(final IIconRegister iIcon)
{
- this.blockIcon = iIcon.registerIcon(CORE.MODID + ":" + thisBlock.getTexture());
- //this.base = iIcon.registerIcon(CORE.MODID + ":" + "blockStone");
+ this.blockIcon = iIcon.registerIcon(CORE.MODID + ":" + this.thisBlock.getTexture());
+ //this.base = iIcon.registerIcon(CORE.MODID + ":" + "blockStone");
//this.overlay = iIcon.registerIcon(CORE.MODID + ":" + "blockOre_Overlay");
}
@Override
- public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4){
+ public int colorMultiplier(final IBlockAccess par1IBlockAccess, final int par2, final int par3, final int par4){
if (this.blockColour == 0){
return MathUtils.generateSingularRandomHexValue();
- }
+ }
return this.blockColour;
}
-
- @Override
- public int getRenderColor(int aMeta) {
- if (this.blockColour == 0){
+
+ @Override
+ public int getRenderColor(final int aMeta) {
+ if (this.blockColour == 0){
return MathUtils.generateSingularRandomHexValue();
}
return this.blockColour;
- }
-
-
-
+ }
+
+
+
}
diff --git a/src/Java/gtPlusPlus/core/block/base/MetaBlock.java b/src/Java/gtPlusPlus/core/block/base/MetaBlock.java
index 4009c36726..3e116eeb7f 100644
--- a/src/Java/gtPlusPlus/core/block/base/MetaBlock.java
+++ b/src/Java/gtPlusPlus/core/block/base/MetaBlock.java
@@ -7,22 +7,22 @@ import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
-public class MetaBlock extends MultiTextureBlock {
+public class MetaBlock extends MultiTextureBlock {
- protected MetaBlock(String unlocalizedName, Material material, SoundType soundType) {
- super(unlocalizedName, material, soundType);
- }
-
- @Override
- public int damageDropped(int meta) {
- return meta;
- }
-
- @Override
- public void getSubBlocks(Item item, CreativeTabs tab, List list) {
- for (int i = 0; i < 6; i ++) {
- list.add(new ItemStack(item, 1, i));
- }
- }
-
-} \ No newline at end of file
+ protected MetaBlock(final String unlocalizedName, final Material material, final SoundType soundType) {
+ super(unlocalizedName, material, soundType);
+ }
+
+ @Override
+ public int damageDropped(final int meta) {
+ return meta;
+ }
+
+ @Override
+ public void getSubBlocks(final Item item, final CreativeTabs tab, final List list) {
+ for (int i = 0; i < 6; i ++) {
+ list.add(new ItemStack(item, 1, i));
+ }
+ }
+
+} \ No newline at end of file
diff --git a/src/Java/gtPlusPlus/core/block/base/MultiTextureBlock.java b/src/Java/gtPlusPlus/core/block/base/MultiTextureBlock.java
index 4f022bae6d..4e91509c6e 100644
--- a/src/Java/gtPlusPlus/core/block/base/MultiTextureBlock.java
+++ b/src/Java/gtPlusPlus/core/block/base/MultiTextureBlock.java
@@ -7,30 +7,30 @@ import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;
-public class MultiTextureBlock extends Block {
+public class MultiTextureBlock extends Block {
public IIcon[] icons = new IIcon[6];
-
- protected MultiTextureBlock(String unlocalizedName, Material material, SoundType blockSound)
- {
- super(material);
- this.setBlockName(unlocalizedName);
- this.setBlockTextureName(CORE.MODID + ":" + unlocalizedName);
- this.setCreativeTab(AddToCreativeTab.tabBlock);
- this.setHardness(2.0F);
- this.setResistance(6.0F);
- this.setStepSound(blockSound);
- }
-
- @Override
- public void registerBlockIcons(IIconRegister reg) {
- for (int i = 0; i < 6; i ++) {
- this.icons[i] = reg.registerIcon(this.textureName + "_" + i);
- }
- }
-
- @Override
- public IIcon getIcon(int side, int meta) {
- return this.icons[side];
- }
+
+ protected MultiTextureBlock(final String unlocalizedName, final Material material, final SoundType blockSound)
+ {
+ super(material);
+ this.setBlockName(unlocalizedName);
+ this.setBlockTextureName(CORE.MODID + ":" + unlocalizedName);
+ this.setCreativeTab(AddToCreativeTab.tabBlock);
+ this.setHardness(2.0F);
+ this.setResistance(6.0F);
+ this.setStepSound(blockSound);
+ }
+
+ @Override
+ public void registerBlockIcons(final IIconRegister reg) {
+ for (int i = 0; i < 6; i ++) {
+ this.icons[i] = reg.registerIcon(this.textureName + "_" + i);
+ }
+ }
+
+ @Override
+ public IIcon getIcon(final int side, final int meta) {
+ return this.icons[side];
+ }
} \ No newline at end of file