mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Rebase!
This commit is contained in:
1 parent
316e703b90
commit
2789545d34
567 files changed
+5211
-6296
No files matched your search
@@ -12,6 +12,7 @@ import net.minecraft.util.StatCollector;
|
||||
public class ToolPart extends CraftingItem implements IToolPart
|
||||
{
|
||||
public String partName;
|
||||
|
||||
public ToolPart(int id, String textureType, String name)
|
||||
{
|
||||
super(id, toolMaterialNames, buildTextureNames(textureType), "parts/");
|
||||
@@ -19,12 +20,12 @@ public class ToolPart extends CraftingItem implements IToolPart
|
||||
this.setMaxDamage(0);
|
||||
this.partName = name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getItemDisplayName (ItemStack par1ItemStack)
|
||||
{
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append(StatCollector.translateToLocal("parttype."+toolTextureNames[par1ItemStack.getItemDamage()])).append(" ").append(StatCollector.translateToLocal("toolpart."+partName));
|
||||
builder.append(StatCollector.translateToLocal("parttype." + toolTextureNames[par1ItemStack.getItemDamage()])).append(" ").append(StatCollector.translateToLocal("toolpart." + partName));
|
||||
return builder.toString();
|
||||
/*String s = ("" + StatCollector.translateToLocal("toolpart."+partName)).trim();
|
||||
String s1 = toolMaterialNames[par1ItemStack.getItemDamage()];
|
||||
|
||||
Reference in new issue
Block a user