BiomesOPlenty/src/minecraft/tdwp_ftw/biomesop/blocks/BlockHolyStone.java
Amnet f1e6102888 Refactored code a little - moved stuff around/removed some
warnings/changed some names.
Corrected Forestry Integration part.
2013-04-10 17:13:12 +02:00

40 lines
1,008 B
Java

package tdwp_ftw.biomesop.blocks;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import tdwp_ftw.biomesop.mod_BiomesOPlenty;
import tdwp_ftw.biomesop.configuration.BOPBlocks;
public class BlockHolyStone extends Block
{
public BlockHolyStone(int par1)
{
super(par1, Material.rock);
this.setCreativeTab(mod_BiomesOPlenty.tabBiomesOPlenty);
}
@Override
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:holystone");
}
/**
* Returns the ID of the items to drop on destruction.
*/
public int idDropped(int par1, Random par2Random, int par3)
{
return BOPBlocks.holyStone.blockID;
}
/**
* Returns the quantity of items to drop on block destruction.
*/
public int quantityDropped(Random par1Random)
{
return 1;
}
}