Unicopia/src/main/java/com/minelittlepony/unicopia/block/BlockSugar.java

35 lines
892 B
Java
Raw Normal View History

2019-01-10 08:44:31 +01:00
package com.minelittlepony.unicopia.block;
import java.util.Random;
import net.minecraft.block.BlockFalling;
import net.minecraft.block.SoundType;
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 BlockSugar extends BlockFalling {
public BlockSugar(String domain, String name) {
super(Material.SAND);
setTranslationKey(name);
setRegistryName(domain, name);
setSoundType(SoundType.SAND);
setCreativeTab(CreativeTabs.MATERIALS);
setHardness(0.7F);
}
@Override
public int quantityDropped(Random random) {
return 9;
}
@Override
public Item getItemDropped(IBlockState state, Random rand, int fortune) {
return Items.SUGAR;
}
}