Restructure with build file (Ant)

This commit is contained in:
Sunstrike committed 2013-09-01 15:31:28 +01:00
1 parent 8ce338dd58
commit 087b33feb7
4039 files changed
+219

No files matched your search

@@ -0,0 +1,77 @@
package tconstruct.items.tools;
import tconstruct.common.TContent;
import tconstruct.library.tools.Weapon;
import net.minecraft.item.Item;
public class Broadsword extends Weapon
{
public Broadsword(int itemID)
{
super(itemID, 4);
this.setUnlocalizedName("InfiTool.Broadsword");
}
@Override
public Item getHeadItem ()
{
return TContent.swordBlade;
}
@Override
public Item getAccessoryItem ()
{
return TContent.wideGuard;
}
public float getDurabilityModifier ()
{
return 1.2f;
}
@Override
public String getIconSuffix (int partType)
{
switch (partType)
{
case 0:
return "_sword_blade";
case 1:
return "_sword_blade_broken";
case 2:
return "_sword_handle";
case 3:
return "_sword_accessory";
default:
return "";
}
}
@Override
public String getEffectSuffix ()
{
return "_sword_effect";
}
@Override
public String getDefaultFolder ()
{
return "broadsword";
}
/*@Override
@SideOnly(Side.CLIENT)
public void onUpdate (ItemStack stack, World world, Entity entity, int par4, boolean par5)
{
super.onUpdate(stack, world, entity, par4, par5);
if (entity instanceof EntityPlayerSP)
{
EntityPlayerSP player = (EntityPlayerSP) entity;
if (player.itemInUse != null && player.itemInUse.getItem() == this)
{
player.movementInput.moveForward *= 5.0F;
player.movementInput.moveStrafe *= 5.0F;
}
}
}*/
}