34 lines
724 B
Java
Executable file
34 lines
724 B
Java
Executable file
package common.block.natural;
|
|
|
|
import common.block.Block;
|
|
import common.block.Material;
|
|
import common.init.Items;
|
|
import common.item.CheatTab;
|
|
import common.item.Item;
|
|
import common.rng.Random;
|
|
import common.world.State;
|
|
|
|
public class BlockClay extends BlockNonBlock
|
|
{
|
|
public BlockClay()
|
|
{
|
|
super(Material.LOOSE);
|
|
this.setTab(CheatTab.NATURE);
|
|
}
|
|
|
|
/**
|
|
* Get the Item that this Block should drop when harvested.
|
|
*/
|
|
public Item getDrop(State state, Random rand, int fortune)
|
|
{
|
|
return Items.clay_lump;
|
|
}
|
|
|
|
/**
|
|
* Returns the quantity of items to drop on block destruction.
|
|
*/
|
|
protected int getDropAmount(Random random)
|
|
{
|
|
return 4;
|
|
}
|
|
}
|