Java Code Examples for net.minecraft.init.Items.DIAMOND_HOE

The following are Jave code examples for showing how to use DIAMOND_HOE of the net.minecraft.init.Items class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Adventurers-Toolbox   File: CommonProxy.java   View Source Code Vote up 4 votes
private ItemStack getToolReplacement(Item item) {
	if (item == Items.DIAMOND_PICKAXE) {
		return createDiamondTool(ModItems.pickaxe);
	}
	if (item == Items.GOLDEN_PICKAXE) {
		return createGoldTool(ModItems.pickaxe);
	}
	if (item == Items.IRON_PICKAXE) {
		return createIronTool(ModItems.pickaxe);
	}
	if (item == Items.STONE_PICKAXE) {
		return createStoneTool(ModItems.pickaxe);
	}
	if (item == Items.WOODEN_PICKAXE) {
		return createWoodTool(ModItems.pickaxe);
	}
	if (item == Items.DIAMOND_AXE) {
		return createDiamondTool(ModItems.axe);
	}
	if (item == Items.GOLDEN_AXE) {
		return createGoldTool(ModItems.axe);
	}
	if (item == Items.IRON_AXE) {
		return createIronTool(ModItems.axe);
	}
	if (item == Items.STONE_AXE) {
		return createStoneTool(ModItems.axe);
	}
	if (item == Items.WOODEN_AXE) {
		return createWoodTool(ModItems.axe);
	}
	if (item == Items.DIAMOND_SHOVEL) {
		return createDiamondTool(ModItems.shovel);
	}
	if (item == Items.GOLDEN_SHOVEL) {
		return createGoldTool(ModItems.shovel);
	}
	if (item == Items.IRON_SHOVEL) {
		return createIronTool(ModItems.shovel);
	}
	if (item == Items.STONE_SHOVEL) {
		return createStoneTool(ModItems.shovel);
	}
	if (item == Items.WOODEN_SHOVEL) {
		return createWoodTool(ModItems.hoe);
	}
	if (item == Items.DIAMOND_HOE) {
		return createDiamondTool(ModItems.hoe);
	}
	if (item == Items.GOLDEN_HOE) {
		return createGoldTool(ModItems.hoe);
	}
	if (item == Items.IRON_HOE) {
		return createIronTool(ModItems.hoe);
	}
	if (item == Items.STONE_HOE) {
		return createStoneTool(ModItems.hoe);
	}
	if (item == Items.WOODEN_HOE) {
		return createWoodTool(ModItems.hoe);
	}
	if (item == Items.DIAMOND_SWORD) {
		return createDiamondSword(ModItems.sword);
	}
	if (item == Items.GOLDEN_SWORD) {
		return createGoldSword(ModItems.sword);
	}
	if (item == Items.IRON_SWORD) {
		return createIronSword(ModItems.sword);
	}
	if (item == Items.STONE_SWORD) {
		return createStoneSword(ModItems.sword);
	}
	if (item == Items.WOODEN_SWORD) {
		return createWoodSword(ModItems.sword);
	}

	return ItemStack.EMPTY;
}