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 UShovelItem extends ShovelItem implements IURegistryType {
	
	protected final String name;
	
	public UShovelItem(String name, Properties properties, IToolMaterial material) {
		this(name, null, properties, material);
	}
	
	public UShovelItem(String name, ItemGroup group, Properties properties, IToolMaterial material) {
		super(material, material.getAdditionalDamage(Tools.SHOVEL), material.getAttackSpeed(Tools.SHOVEL), 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.SHOVEL, material.getHarvestLevel());
	}
	
}

@@ -147,68 +147,8 @@
 ls;%0A
-import info.u_team.u_team_core.api.registry.IURegistryType;%0A
 impo
@@ -264,67 +264,9 @@
 tem 
-implements IURegistryType %7B%0A%09%0A%09protected final String name;
+%7B
 %0A%09%0A%09
@@ -284,29 +284,16 @@
 velItem(
-String name, 
 Properti
@@ -340,22 +340,16 @@
 %0A%09%09this(
-name, 
 null, pr
@@ -398,21 +398,8 @@
 tem(
-String name, 
 Item
@@ -645,91 +645,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 UShovelItem