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

The following examples show how to use net.minecraft.init.Items#GOLDEN_PICKAXE . These examples are extracted from open source projects. 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 want to check out the right sidebar which shows the related API usage.
Example 1
public ItemStack getRandomPickaxe(Random rand) {
	switch (rand.nextInt(4)) {
	case 1:
		return new ItemStack(Items.STONE_PICKAXE);
	case 2:
		return new ItemStack(Items.IRON_PICKAXE);
	case 3:
		return new ItemStack(Items.GOLDEN_PICKAXE);
	default:
		return new ItemStack(Items.WOODEN_PICKAXE);
	}
}
 
Example 2
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);
		}
	}