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

42 lines
1 KiB
Java
Raw Normal View History

package com.bopteam.biomesop.blocks;
2013-03-28 19:03:53 +00:00
import java.util.Random;
import com.bopteam.biomesop.mod_BiomesOPlenty;
import com.bopteam.biomesop.configuration.BOPBlocks;
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
public class BlockAmethystBlock extends Block
{
2013-03-30 10:54:53 +00:00
public BlockAmethystBlock(int par1)
2013-03-28 19:03:53 +00:00
{
2013-03-30 10:54:53 +00:00
super(par1, Material.iron);
2013-03-28 19:03:53 +00:00
this.setCreativeTab(mod_BiomesOPlenty.tabBiomesOPlenty);
}
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int par1, Random par2Random, int par3)
{
return BOPBlocks.amethystBlock.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;
}
2013-03-30 10:54:53 +00:00
@Override
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:amethystblock");
}
2013-03-28 19:03:53 +00:00
}