2014-04-02 04:47:08 +02:00
|
|
|
package com.pahimar.ee3.block;
|
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
import java.util.Random;
|
|
|
|
|
2014-04-30 04:26:30 +02:00
|
|
|
import com.pahimar.ee3.init.ModItems;
|
2014-04-02 04:47:08 +02:00
|
|
|
import com.pahimar.ee3.reference.Names;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
import net.minecraft.item.Item;
|
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
public class BlockChalk extends BlockEE {
|
|
|
|
public BlockChalk() {
|
2014-04-02 04:47:08 +02:00
|
|
|
super(Material.clay);
|
|
|
|
this.setBlockName(Names.Items.CHALK);
|
|
|
|
this.setHardness(0.6f);
|
|
|
|
this.setStepSound(soundTypeStone);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2023-01-03 17:47:36 +01:00
|
|
|
public Item getItemDropped(int par1, Random random, int par2) {
|
2014-04-02 04:47:08 +02:00
|
|
|
return ModItems.chalk;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2023-01-03 17:47:36 +01:00
|
|
|
public int quantityDropped(Random random) {
|
2014-04-02 04:47:08 +02:00
|
|
|
return (random.nextInt(4) + 1);
|
|
|
|
}
|
|
|
|
}
|