Doing some code cleanup.

This commit is contained in:
Alexander committed 2014-02-17 00:31:43 -05:00
1 parent 038be9da2a
commit 3d866316a7
199 files changed
+797 -381

No files matched your search

@@ -49,6 +49,7 @@ public abstract class Weapon extends ToolCore
* returns the action that specifies what animation to play when the items
* is being used
*/
@Override
public EnumAction getItemUseAction (ItemStack par1ItemStack)
{
return EnumAction.block;
@@ -57,6 +58,7 @@ public abstract class Weapon extends ToolCore
/**
* How long it takes to use or consume an item
*/
@Override
public int getMaxItemUseDuration (ItemStack par1ItemStack)
{
return 72000;
@@ -66,12 +68,14 @@ public abstract class Weapon extends ToolCore
* Called whenever this item is equipped and the right mouse button is
* pressed. Args: itemStack, world, entityPlayer
*/
@Override
public ItemStack onItemRightClick (ItemStack stack, World world, EntityPlayer player)
{
player.setItemInUse(stack, this.getMaxItemUseDuration(stack));
return stack;
}
@Override
public boolean onItemUse (ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float clickX, float clickY, float clickZ)
{
return false;
@@ -80,6 +84,7 @@ public abstract class Weapon extends ToolCore
/**
* Returns if the item (tool) can harvest results from the block type.
*/
@Override
public boolean canHarvestBlock (Block block, ItemStack is)
{
for (int i = 0; i < web.length; i++)