Files
PrimalSorcery/build/tmp/recompileMc/sources/net/minecraft/block/BlockClay.java
Mohammad-Ali Minaie b86dedad2f base mod created
2018-10-08 09:07:47 -04:00

33 lines
785 B
Java

package net.minecraft.block;
import java.util.Random;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
public class BlockClay extends Block
{
public BlockClay()
{
super(Material.CLAY);
this.setCreativeTab(CreativeTabs.BUILDING_BLOCKS);
}
/**
* Get the Item that this Block should drop when harvested.
*/
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
return Items.CLAY_BALL;
}
/**
* Returns the quantity of items to drop on block destruction.
*/
public int quantityDropped(Random random)
{
return 4;
}
}