Java Code Examples for net.minecraft.init.Items#DIAMOND_PICKAXE

The following examples show how to use net.minecraft.init.Items#DIAMOND_PICKAXE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ShopkeeperTradesForEarth.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
private static ItemStack level3Pick() {
	ItemStack stack = new ItemStack(Items.DIAMOND_PICKAXE);
	stack.setStackDisplayName("Terra Pickaxe");
	stack.addEnchantment(Enchantment.REGISTRY.getObjectById(32), 1);
	stack.addEnchantment(Enchantment.REGISTRY.getObjectById(34), 1);
	return stack;
}
 
Example 2
Source File: ShopkeeperTradesForEarth.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
private static ItemStack level4Pick() {
	ItemStack stack = new ItemStack(Items.DIAMOND_PICKAXE);
	stack.setStackDisplayName("Gaea Pickaxe");
	stack.addEnchantment(Enchantment.REGISTRY.getObjectById(32), 3);
	stack.addEnchantment(Enchantment.REGISTRY.getObjectById(34), 2);
	stack.addEnchantment(Enchantment.REGISTRY.getObjectById(35), 1);
	return stack;
}
 
Example 3
Source File: ShopkeeperTradesForEarth.java    From ToroQuest with GNU General Public License v3.0 5 votes vote down vote up
private static ItemStack level5Pick() {
	ItemStack stack = new ItemStack(Items.DIAMOND_PICKAXE);
	stack.setStackDisplayName("Paul's Prick");
	stack.addEnchantment(Enchantment.REGISTRY.getObjectById(32), 5);
	stack.addEnchantment(Enchantment.REGISTRY.getObjectById(34), 3);
	stack.addEnchantment(Enchantment.REGISTRY.getObjectById(35), 3);
	return stack;
}
 
Example 4
Source File: ItemTool.java    From minecraft-roguelike with GNU General Public License v3.0 5 votes vote down vote up
private static ItemStack pickPick(Random rand, int level) {

		Quality quality = Quality.getToolQuality(rand, level);
		switch (quality) {
		case DIAMOND: return new ItemStack(Items.DIAMOND_PICKAXE);
		case GOLD: return new ItemStack(Items.GOLDEN_PICKAXE);
		case IRON: return new ItemStack(Items.IRON_PICKAXE);
		case STONE: return new ItemStack(Items.STONE_PICKAXE);
		default: return new ItemStack(Items.WOODEN_PICKAXE);
		}
	}