mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Upload my Code Changes/Format/imports
This commit is contained in:
1 parent
5bcdb7ca46
commit
5d4e38c0cb
264 files changed
+4014
-3972
No files matched your search
@@ -362,8 +362,10 @@ public class Hammer extends HarvestTool
|
||||
}
|
||||
}
|
||||
|
||||
/*if (block == Block.silverfish)
|
||||
return getblockSpeed(tags, block, meta);*/
|
||||
/*
|
||||
* if (block == Block.silverfish) return getblockSpeed(tags, block,
|
||||
* meta);
|
||||
*/
|
||||
|
||||
return super.getDigSpeed(stack, block, meta);
|
||||
}
|
||||
@@ -401,20 +403,15 @@ public class Hammer extends HarvestTool
|
||||
return 0.1f;
|
||||
}
|
||||
|
||||
/*@Override
|
||||
public void onUpdate (ItemStack stack, World world, Entity entity, int par4, boolean par5)
|
||||
{
|
||||
super.onUpdate(stack, world, entity, par4, par5);
|
||||
if (entity instanceof EntityPlayer)
|
||||
{
|
||||
EntityPlayer player = (EntityPlayer) entity;
|
||||
ItemStack equipped = player.getCurrentEquippedItem();
|
||||
if (equipped == stack)
|
||||
{
|
||||
player.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 1, 1));
|
||||
}
|
||||
}
|
||||
}*/
|
||||
/*
|
||||
* @Override public void onUpdate (ItemStack stack, World world, Entity
|
||||
* entity, int par4, boolean par5) { super.onUpdate(stack, world, entity,
|
||||
* par4, par5); if (entity instanceof EntityPlayer) { EntityPlayer player =
|
||||
* (EntityPlayer) entity; ItemStack equipped =
|
||||
* player.getCurrentEquippedItem(); if (equipped == stack) {
|
||||
* player.addPotionEffect(new PotionEffect(Potion.digSlowdown.id, 1, 1)); }
|
||||
* } }
|
||||
*/
|
||||
|
||||
@Override
|
||||
public String[] toolCategories ()
|
||||
|
||||
Reference in new issue
Block a user