package info.u_team.u_team_core.item.tool;

import info.u_team.u_team_core.api.IToolMaterial;
import info.u_team.u_team_core.api.IToolMaterial.Tools;
import info.u_team.u_team_core.api.registry.IURegistryType;
import net.minecraft.item.*;
import net.minecraftforge.common.ToolType;

public class UPickaxeItem extends PickaxeItem implements IURegistryType {
	
	protected final String name;
	
	public UPickaxeItem(String name, Properties properties, IToolMaterial material) {
		this(name, null, properties, material);
	}
	
	public UPickaxeItem(String name, ItemGroup group, Properties properties, IToolMaterial material) {
		super(material, (int) material.getAdditionalDamage(Tools.PICKAXE), material.getAttackSpeed(Tools.PICKAXE), applyToolType(group == null ? properties : properties.group(group), material));
		this.name = name;
	}
	
	@Override
	public String getEntryName() {
		return name;
	}
	
	private static Properties applyToolType(Properties properties, IToolMaterial material) {
		return properties.addToolType(ToolType.PICKAXE, material.getHarvestLevel());
	}
}

@@ -147,68 +147,8 @@
 ls;%0A
-import info.u_team.u_team_core.api.registry.IURegistryType;%0A
 impo
@@ -266,67 +266,9 @@
 tem 
-implements IURegistryType %7B%0A%09%0A%09protected final String name;
+%7B
 %0A%09%0A%09
@@ -287,29 +287,16 @@
 axeItem(
-String name, 
 Properti
@@ -343,22 +343,16 @@
 %0A%09%09this(
-name, 
 null, pr
@@ -402,21 +402,8 @@
 tem(
-String name, 
 Item
@@ -657,91 +657,8 @@
 ));%0A
-%09%09this.name = name;%0A%09%7D%0A%09%0A%09@Override%0A%09public String getEntryName() %7B%0A%09%09return name;%0A
 %09%7D%0A%09

Clear up UPickaxeItem