package dangerzone.blocks;

import dangerzone.Player;
import dangerzone.Utils;
import dangerzone.World;
import dangerzone.items.Items;

public class BlockOreEmerald extends BlockOre {

	public BlockOreEmerald(String n, String txt, int hard, int mind) {
		super(n, txt, hard, mind);
	}
	
	//client-side only
	public int getBlockDrop(Player p, World w, int dimension, int x, int y, int z){
		//Player can be NULL! Make sure you check!
		return 0;
	}
	
	//client-side only
	public int getItemDrop(Player p, World w, int d, int x, int y, int z){
		//Player can be NULL! Make sure you check!
		Utils.spawnExperience(12, w, d, (double)x+0.5f, (double)y+0.5f, (double)z+0.5f);
		return Items.emerald.itemID; //override this if you want to drop an item instead of a block.
	}
}
