BiomesOPlenty/src/minecraft/com/bopteam/biomesop/blocks/BlockAshStone.java

46 lines
1.1 KiB
Java
Raw Normal View History

package com.bopteam.biomesop.blocks;
import com.bopteam.biomesop.mod_BiomesOPlenty;
2013-03-28 19:03:53 +00:00
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
2013-03-30 10:54:53 +00:00
import net.minecraft.client.renderer.texture.IconRegister;
2013-03-28 19:03:53 +00:00
import net.minecraft.world.IBlockAccess;
public class BlockAshStone extends Block
{
2013-03-30 10:54:53 +00:00
public BlockAshStone(int par1)
2013-03-28 19:03:53 +00:00
{
2013-03-30 10:54:53 +00:00
super(par1, Material.rock);
2013-03-28 19:03:53 +00:00
this.setCreativeTab(mod_BiomesOPlenty.tabBiomesOPlenty);
}
2013-03-30 10:54:53 +00:00
@Override
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:ashstone");
}
2013-03-28 19:03:53 +00:00
public int getBlockColor()
{
return 12895428;
}
/**
* Returns the color this block should be rendered. Used by leaves.
*/
public int getRenderColor(int par1)
{
return 12895428;
}
/**
* Returns a integer with hex for 0xrrggbb with this color multiplied against the blocks color. Note only called
* when first determining what to render.
*/
public int colorMultiplier(IBlockAccess par1IBlockAccess, int par2, int par3, int par4)
{
return 12895428;
}
}