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

41 lines
1,018 B
Java

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