BiomesOPlenty/src/minecraft/tdwp_ftw/biomesop/blocks/BlockRedRock.java

41 lines
1,009 B
Java
Raw Normal View History

2013-03-28 19:03:53 +00:00
package tdwp_ftw.biomesop.blocks;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
2013-03-30 17:14:03 +00:00
import net.minecraft.client.renderer.texture.IconRegister;
import tdwp_ftw.biomesop.mod_BiomesOPlenty;
import tdwp_ftw.biomesop.declarations.BOPBlocks;
2013-03-28 19:03:53 +00:00
public class BlockRedRock extends Block
{
2013-03-30 17:14:03 +00:00
public BlockRedRock(int par1)
2013-03-28 19:03:53 +00:00
{
2013-03-30 17:14:03 +00:00
super(par1, Material.rock);
2013-03-28 19:03:53 +00:00
this.setCreativeTab(mod_BiomesOPlenty.tabBiomesOPlenty);
}
2013-03-30 17:14:03 +00:00
@Override
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:redrock");
}
2013-03-28 19:03:53 +00:00
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int par1, Random par2Random, int par3)
{
return BOPBlocks.redRockCobble.blockID;
2013-03-28 19:03:53 +00:00
}
/**
* Returns the quantity of items to drop on block destruction.
*/
public int quantityDropped(Random par1Random)
{
return 1;
}
}