2013-07-26 21:18:53 -07:00
|
|
|
package tconstruct.items.tools;
|
|
|
|
|
|
2013-11-25 14:08:18 -05:00
|
|
|
import java.util.List;
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2014-01-16 01:36:18 -05:00
|
|
|
import mantle.world.WorldHelper;
|
2013-07-26 21:18:53 -07:00
|
|
|
import net.minecraft.block.Block;
|
|
|
|
|
import net.minecraft.block.material.Material;
|
2013-11-25 14:08:18 -05:00
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
2013-07-26 21:18:53 -07:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
2013-12-31 14:11:05 -05:00
|
|
|
import net.minecraft.init.Blocks;
|
2013-07-26 21:18:53 -07:00
|
|
|
import net.minecraft.item.Item;
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
2013-12-31 14:11:05 -05:00
|
|
|
import net.minecraft.util.IIcon;
|
2013-07-26 21:18:53 -07:00
|
|
|
import net.minecraft.util.MovingObjectPosition;
|
|
|
|
|
import net.minecraft.world.World;
|
2014-02-05 10:28:54 -05:00
|
|
|
import tconstruct.common.TRepo;
|
|
|
|
|
import tconstruct.library.ActiveToolMod;
|
|
|
|
|
import tconstruct.library.TConstructRegistry;
|
|
|
|
|
import tconstruct.library.crafting.ToolBuilder;
|
|
|
|
|
import tconstruct.library.tools.AbilityHelper;
|
|
|
|
|
import tconstruct.library.tools.HarvestTool;
|
2013-07-26 21:18:53 -07:00
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
|
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
|
|
|
|
|
|
public class Hammer extends HarvestTool
|
|
|
|
|
{
|
2013-12-31 14:11:05 -05:00
|
|
|
public Hammer()
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
2013-12-31 14:11:05 -05:00
|
|
|
super(2);
|
2013-07-26 21:18:53 -07:00
|
|
|
this.setUnlocalizedName("InfiTool.Hammer");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
|
@Override
|
|
|
|
|
public int getRenderPasses (int metadata)
|
|
|
|
|
{
|
|
|
|
|
return 10;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int getPartAmount ()
|
|
|
|
|
{
|
|
|
|
|
return 4;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int durabilityTypeAccessory ()
|
|
|
|
|
{
|
|
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int durabilityTypeExtra ()
|
|
|
|
|
{
|
|
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected String getHarvestType ()
|
|
|
|
|
{
|
|
|
|
|
return "pickaxe";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
protected Material[] getEffectiveMaterials ()
|
|
|
|
|
{
|
|
|
|
|
return materials;
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-05 09:11:06 -05:00
|
|
|
static Material[] materials = new Material[] { Material.rock, Material.iron, Material.ice, Material.glass, Material.piston, Material.anvil };
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Item getHeadItem ()
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
return TRepo.hammerHead;
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Item getHandleItem ()
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
return TRepo.toughRod;
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Item getAccessoryItem ()
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
return TRepo.largePlate;
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Item getExtraItem ()
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
return TRepo.largePlate;
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public float getDurabilityModifier ()
|
|
|
|
|
{
|
|
|
|
|
return 4.5f;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getIconSuffix (int partType)
|
|
|
|
|
{
|
|
|
|
|
switch (partType)
|
|
|
|
|
{
|
|
|
|
|
case 0:
|
|
|
|
|
return "_hammer_head";
|
|
|
|
|
case 1:
|
|
|
|
|
return "_hammer_handle_broken";
|
|
|
|
|
case 2:
|
|
|
|
|
return "_hammer_handle";
|
|
|
|
|
case 3:
|
|
|
|
|
return "_hammer_front";
|
|
|
|
|
case 4:
|
|
|
|
|
return "_hammer_back";
|
|
|
|
|
default:
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getEffectSuffix ()
|
|
|
|
|
{
|
|
|
|
|
return "_hammer_effect";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getDefaultFolder ()
|
|
|
|
|
{
|
|
|
|
|
return "hammer";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-12-31 14:11:05 -05:00
|
|
|
public IIcon getIcon (ItemStack stack, int renderPass)
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
NBTTagCompound tags = stack.getTagCompound();
|
|
|
|
|
|
|
|
|
|
if (tags != null)
|
|
|
|
|
{
|
|
|
|
|
tags = stack.getTagCompound().getCompoundTag("InfiTool");
|
|
|
|
|
if (renderPass < getPartAmount())
|
|
|
|
|
{
|
|
|
|
|
if (renderPass == 0) // Handle
|
|
|
|
|
{
|
|
|
|
|
if (tags.getBoolean("Broken"))
|
|
|
|
|
return (brokenIcons.get(tags.getInteger("RenderHandle")));
|
|
|
|
|
return handleIcons.get(tags.getInteger("RenderHandle"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (renderPass == 1) // Head
|
|
|
|
|
{
|
|
|
|
|
return (headIcons.get(tags.getInteger("RenderHead")));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (renderPass == 2) // Accessory
|
|
|
|
|
{
|
|
|
|
|
return (accessoryIcons.get(tags.getInteger("RenderAccessory")));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (renderPass == 3) // Extra
|
|
|
|
|
{
|
|
|
|
|
return (extraIcons.get(tags.getInteger("RenderExtra")));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (renderPass == getPartAmount())
|
|
|
|
|
{
|
|
|
|
|
if (tags.hasKey("Effect1"))
|
|
|
|
|
return (effectIcons.get(tags.getInteger("Effect1")));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (renderPass == getPartAmount() + 1)
|
|
|
|
|
{
|
|
|
|
|
if (tags.hasKey("Effect2"))
|
|
|
|
|
return (effectIcons.get(tags.getInteger("Effect2")));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (renderPass == getPartAmount() + 2)
|
|
|
|
|
{
|
|
|
|
|
if (tags.hasKey("Effect3"))
|
|
|
|
|
return (effectIcons.get(tags.getInteger("Effect3")));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (renderPass == getPartAmount() + 3)
|
|
|
|
|
{
|
|
|
|
|
if (tags.hasKey("Effect4"))
|
|
|
|
|
return (effectIcons.get(tags.getInteger("Effect4")));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (renderPass == getPartAmount() + 4)
|
|
|
|
|
{
|
|
|
|
|
if (tags.hasKey("Effect5"))
|
|
|
|
|
return (effectIcons.get(tags.getInteger("Effect5")));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (renderPass == getPartAmount() + 5)
|
|
|
|
|
{
|
|
|
|
|
if (tags.hasKey("Effect6"))
|
|
|
|
|
return (effectIcons.get(tags.getInteger("Effect6")));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return blankSprite;
|
|
|
|
|
}
|
|
|
|
|
return emptyIcon;
|
|
|
|
|
}
|
|
|
|
|
|
2013-11-25 14:08:18 -05:00
|
|
|
@Override
|
2014-02-07 17:11:03 -05:00
|
|
|
public void getSubItems (Item id, CreativeTabs tab, List list)
|
2013-11-25 14:08:18 -05:00
|
|
|
{
|
|
|
|
|
super.getSubItems(id, tab, list);
|
|
|
|
|
|
|
|
|
|
ItemStack tool = ToolBuilder.instance.buildTool(new ItemStack(getHeadItem(), 1, 10), new ItemStack(getHandleItem(), 1, 8), new ItemStack(getAccessoryItem(), 1, 11), new ItemStack(
|
|
|
|
|
getExtraItem(), 1, 11), "InfiMiner");
|
|
|
|
|
|
|
|
|
|
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
|
|
|
|
|
tags.setInteger("Modifiers", 0);
|
|
|
|
|
tags.setInteger("Attack", Integer.MAX_VALUE / 100);
|
|
|
|
|
tags.setInteger("TotalDurability", Integer.MAX_VALUE / 100);
|
|
|
|
|
tags.setInteger("BaseDurability", Integer.MAX_VALUE / 100);
|
|
|
|
|
tags.setInteger("MiningSpeed", Integer.MAX_VALUE / 100);
|
|
|
|
|
tags.setInteger("Unbreaking", 10);
|
|
|
|
|
|
|
|
|
|
tags.setBoolean("Built", true);
|
|
|
|
|
list.add(tool);
|
|
|
|
|
}
|
|
|
|
|
|
2013-07-26 21:18:53 -07:00
|
|
|
@Override
|
|
|
|
|
public boolean onBlockStartBreak (ItemStack stack, int x, int y, int z, EntityPlayer player)
|
|
|
|
|
{
|
2013-08-05 13:36:19 -07:00
|
|
|
if (!stack.hasTagCompound())
|
|
|
|
|
return false;
|
2013-08-31 05:13:31 -07:00
|
|
|
|
2013-07-26 21:18:53 -07:00
|
|
|
World world = player.worldObj;
|
2014-02-05 08:28:53 -05:00
|
|
|
final Block block = world.getBlock(x, y, z);
|
2013-07-26 21:18:53 -07:00
|
|
|
final int meta = world.getBlockMetadata(x, y, z);
|
|
|
|
|
if (!stack.hasTagCompound())
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
if (block == null)
|
|
|
|
|
return super.onBlockStartBreak(stack, x, y, z, player);
|
|
|
|
|
|
2014-02-05 08:28:53 -05:00
|
|
|
float blockHardness = block.getBlockHardness(world, x, y, z);
|
2013-07-26 21:18:53 -07:00
|
|
|
|
|
|
|
|
boolean validStart = false;
|
|
|
|
|
for (int iter = 0; iter < materials.length; iter++)
|
|
|
|
|
{
|
2014-02-05 08:28:53 -05:00
|
|
|
if (materials[iter] == block.getMaterial())
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
validStart = true;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-08-31 05:13:31 -07:00
|
|
|
|
2014-02-02 10:52:13 -05:00
|
|
|
if (block == Blocks.monster_egg)
|
2013-08-27 18:11:13 -07:00
|
|
|
validStart = true;
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2013-11-25 14:08:18 -05:00
|
|
|
MovingObjectPosition mop = AbilityHelper.raytraceFromEntity(world, player, true, 4.5D);
|
2013-07-26 21:18:53 -07:00
|
|
|
if (mop == null || !validStart)
|
|
|
|
|
return super.onBlockStartBreak(stack, x, y, z, player);
|
|
|
|
|
|
|
|
|
|
int xRange = 1;
|
|
|
|
|
int yRange = 1;
|
|
|
|
|
int zRange = 1;
|
|
|
|
|
switch (mop.sideHit)
|
|
|
|
|
{
|
|
|
|
|
case 0:
|
|
|
|
|
case 1:
|
|
|
|
|
yRange = 0;
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
case 3:
|
|
|
|
|
zRange = 0;
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
case 5:
|
|
|
|
|
xRange = 0;
|
|
|
|
|
break;
|
|
|
|
|
}
|
2013-08-31 05:13:31 -07:00
|
|
|
|
2013-07-26 21:18:53 -07:00
|
|
|
NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
|
2013-08-26 13:53:13 -07:00
|
|
|
int toolLevel = tags.getInteger("HarvestLevel");
|
2013-07-26 21:18:53 -07:00
|
|
|
for (int xPos = x - xRange; xPos <= x + xRange; xPos++)
|
|
|
|
|
{
|
|
|
|
|
for (int yPos = y - yRange; yPos <= y + yRange; yPos++)
|
|
|
|
|
{
|
|
|
|
|
for (int zPos = z - zRange; zPos <= z + zRange; zPos++)
|
|
|
|
|
{
|
|
|
|
|
if (!(tags.getBoolean("Broken")))
|
|
|
|
|
{
|
2014-02-05 08:28:53 -05:00
|
|
|
Block localBlock = world.getBlock(xPos, yPos, zPos);
|
2013-07-26 21:18:53 -07:00
|
|
|
int localMeta = world.getBlockMetadata(xPos, yPos, zPos);
|
2014-02-15 01:39:33 -05:00
|
|
|
int hlvl = -1;
|
|
|
|
|
if (block.getHarvestTool(meta).equals(this.getHarvestType()))
|
|
|
|
|
hlvl = block.getHarvestLevel(meta);
|
2014-02-05 08:28:53 -05:00
|
|
|
float localHardness = localBlock == null ? Float.MAX_VALUE : localBlock.getBlockHardness(world, xPos, yPos, zPos);
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2013-08-26 13:53:13 -07:00
|
|
|
if (hlvl <= toolLevel && localHardness - 1.5 <= blockHardness)
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
boolean cancelHarvest = false;
|
|
|
|
|
for (ActiveToolMod mod : TConstructRegistry.activeModifiers)
|
|
|
|
|
{
|
|
|
|
|
if (mod.beforeBlockBreak(this, stack, xPos, yPos, zPos, player))
|
|
|
|
|
cancelHarvest = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!cancelHarvest)
|
|
|
|
|
{
|
2013-08-27 18:11:13 -07:00
|
|
|
if (localBlock != null && !(localHardness < 0))
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
for (int iter = 0; iter < materials.length; iter++)
|
|
|
|
|
{
|
2014-02-05 08:28:53 -05:00
|
|
|
if (materials[iter] == localBlock.getMaterial() || localBlock == Blocks.monster_egg)
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
if (!player.capabilities.isCreativeMode)
|
|
|
|
|
{
|
2014-02-02 11:35:00 -05:00
|
|
|
if (localBlock.removedByPlayer(world, player, xPos, yPos, zPos))
|
2013-08-26 13:53:13 -07:00
|
|
|
{
|
2014-02-05 08:28:53 -05:00
|
|
|
localBlock.onBlockDestroyedByPlayer(world, xPos, yPos, zPos, localMeta);
|
2013-08-26 13:53:13 -07:00
|
|
|
}
|
2014-02-05 08:28:53 -05:00
|
|
|
localBlock.harvestBlock(world, player, xPos, yPos, zPos, localMeta);
|
|
|
|
|
localBlock.onBlockHarvested(world, xPos, yPos, zPos, localMeta, player);
|
2013-07-26 21:18:53 -07:00
|
|
|
if (blockHardness > 0f)
|
2014-02-05 08:28:53 -05:00
|
|
|
onBlockDestroyed(stack, world, localBlock, xPos, yPos, zPos, player);
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
2013-07-22 21:53:01 -07:00
|
|
|
else
|
|
|
|
|
{
|
2014-01-16 01:36:18 -05:00
|
|
|
WorldHelper.setBlockToAir(world, xPos, yPos, zPos);
|
2013-07-22 21:53:01 -07:00
|
|
|
}
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!world.isRemote)
|
2014-02-05 08:28:53 -05:00
|
|
|
world.playAuxSFX(2001, x, y, z, Block.getIdFromBlock(block) + (meta << 12));
|
2013-07-26 21:18:53 -07:00
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2014-02-03 10:02:49 -05:00
|
|
|
public float getDigSpeed (ItemStack stack, Block block, int meta)
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
|
|
|
|
if (!stack.hasTagCompound())
|
|
|
|
|
return 1.0f;
|
|
|
|
|
|
|
|
|
|
NBTTagCompound tags = stack.getTagCompound().getCompoundTag("InfiTool");
|
|
|
|
|
if (tags.getBoolean("Broken"))
|
|
|
|
|
return 0.1f;
|
|
|
|
|
|
|
|
|
|
Material[] materials = getEffectiveMaterials();
|
|
|
|
|
for (int i = 0; i < materials.length; i++)
|
|
|
|
|
{
|
2014-02-05 08:28:53 -05:00
|
|
|
if (materials[i] == block.getMaterial())
|
2013-07-26 21:18:53 -07:00
|
|
|
{
|
2013-07-22 21:53:01 -07:00
|
|
|
return getblockSpeed(tags, block, meta);
|
|
|
|
|
}
|
|
|
|
|
}
|
2013-08-31 05:13:31 -07:00
|
|
|
|
2013-07-22 21:53:01 -07:00
|
|
|
/*if (block == Block.silverfish)
|
|
|
|
|
return getblockSpeed(tags, block, meta);*/
|
2013-08-31 05:13:31 -07:00
|
|
|
|
2014-02-03 10:02:49 -05:00
|
|
|
return super.getDigSpeed(stack, block, meta);
|
2013-07-22 21:53:01 -07:00
|
|
|
}
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2013-07-22 21:53:01 -07:00
|
|
|
float getblockSpeed (NBTTagCompound tags, Block block, int meta)
|
|
|
|
|
{
|
|
|
|
|
float mineSpeed = tags.getInteger("MiningSpeed");
|
|
|
|
|
int heads = 1;
|
|
|
|
|
if (tags.hasKey("MiningSpeed2"))
|
|
|
|
|
{
|
|
|
|
|
mineSpeed += tags.getInteger("MiningSpeed2");
|
|
|
|
|
heads++;
|
|
|
|
|
}
|
|
|
|
|
if (tags.hasKey("MiningSpeedHandle"))
|
|
|
|
|
{
|
|
|
|
|
mineSpeed += tags.getInteger("MiningSpeedHandle");
|
|
|
|
|
heads++;
|
|
|
|
|
}
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2013-07-22 21:53:01 -07:00
|
|
|
if (tags.hasKey("MiningSpeedExtra"))
|
|
|
|
|
{
|
|
|
|
|
mineSpeed += tags.getInteger("MiningSpeedExtra");
|
|
|
|
|
heads++;
|
|
|
|
|
}
|
|
|
|
|
float trueSpeed = mineSpeed / (heads * 300f);
|
2014-02-01 15:17:30 -05:00
|
|
|
int hlvl = block.getHarvestLevel(meta);
|
2013-07-22 21:53:01 -07:00
|
|
|
int durability = tags.getInteger("Damage");
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2013-07-22 21:53:01 -07:00
|
|
|
float stonebound = tags.getFloat("Shoddy");
|
2013-08-26 20:17:21 -07:00
|
|
|
float bonusLog = (float) Math.log(durability / 216f + 1) * 2 * stonebound;
|
2013-07-22 21:53:01 -07:00
|
|
|
trueSpeed += bonusLog;
|
2013-07-26 21:18:53 -07:00
|
|
|
|
2013-07-22 21:53:01 -07:00
|
|
|
if (hlvl <= tags.getInteger("HarvestLevel"))
|
|
|
|
|
return trueSpeed;
|
|
|
|
|
return 0.1f;
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*@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 ()
|
|
|
|
|
{
|
|
|
|
|
return new String[] { "weapon", "harvest", "melee", "bludgeoning" };
|
|
|
|
|
}
|
2013-11-10 13:57:35 -08:00
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean willAllowOffhandWeapon ()
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean isOffhandHandDualWeapon ()
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-10 10:21:00 -04:00
|
|
|
@Override
|
2013-11-10 13:57:35 -08:00
|
|
|
public boolean sheatheOnBack ()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2013-07-26 21:18:53 -07:00
|
|
|
}
|