/* Left-Click Harvest Berries */ @Override public void onBlockClicked(World world, int x, int y, int z, EntityPlayer entityplayer) { if (!world.isRemote) { int meta = world.getBlockMetadata(x, y, z); if (TFC_Core.isSaltWater(world.getBlock(x, y + 1, z)) && entityplayer.inventory.getCurrentItem() != null && entityplayer.inventory.getCurrentItem().getItem() instanceof ItemKnife) { dropBlockAsItem(world, x, y, z, getSeaWeed(world.rand)); doBeforeFall(world, x, y, z); } } }
@Override public ArrayList<ItemStack> getDrops( World world, int x, int y, int z, int metadata, int fortune) { if (!TFC_Core.isSaltWater(world.getBlock(x, y + 1, z))) return super.getDrops(world, x, y, z, metadata, fortune); ArrayList<ItemStack> ret = new ArrayList<ItemStack>(); ret.add(getSeaWeed(world.rand)); TEWaterPlant te = (TEWaterPlant) world.getTileEntity(x, y, z); ret.add(new ItemStack(te.getBlockType(), 1, metadata)); return ret; }